swconfig: show tagged port flag
SVN-Revision: 19238
This commit is contained in:
parent
fbc389ae9d
commit
428f066b77
2 changed files with 7 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=swconfig
|
PKG_NAME:=swconfig
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
|
@ -249,8 +249,12 @@ int main(int argc, char **argv)
|
||||||
printf("%s\n", val.value.s);
|
printf("%s\n", val.value.s);
|
||||||
break;
|
break;
|
||||||
case SWITCH_TYPE_PORTS:
|
case SWITCH_TYPE_PORTS:
|
||||||
for(i = 0; i < val.len; i++)
|
for(i = 0; i < val.len; i++) {
|
||||||
printf("%d ", val.value.ports[i]);
|
printf("%d%s ",
|
||||||
|
val.value.ports[i].id,
|
||||||
|
(val.value.ports[i].flags &
|
||||||
|
SWLIB_PORT_FLAG_TAGGED) ? "t" : "");
|
||||||
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue