Skip to content

cmd: don't print "0x0000" after "Management VLAN disabled" - #1014

Merged
feelfree69 merged 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/vlan-mgmt-print
Nov 26, 2026
Merged

feelfree69 merged 1 commit into
RTLPlayground:mainfrom
DrDoof:fix/vlan-mgmt-print

Conversation

@DrDoof

@DrDoof DrDoof commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

vlan 0 mgmt prints 0x0000 on a line of its own after "Management VLAN disabled". The else has no braces, so of its three statements only the first belongs to it; the VLAN number and the newline are printed in both cases.

The two branches have braces now.

In rtlsim on an RTL8373 board vlan 0 mgmt answers "Management VLAN disabled" and 0x0000 on main, and only the first line with this change.

The else in "vlan <id> mgmt" has no braces, so only the first of its
three statements belongs to it. After "vlan 0 mgmt" the VLAN number
and a newline are printed as well.
@feelfree69
feelfree69 merged commit 8e8c093 into RTLPlayground:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants