From: Gabor Juhos Date: Wed, 20 Jan 2010 07:06:12 +0000 (+0000) Subject: swconfig: show tagged port flag X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=428f066b774c56674e57769a652d749cbfb81470;p=openwrt%2Fstaging%2Fluka.git swconfig: show tagged port flag SVN-Revision: 19238 --- diff --git a/package/swconfig/Makefile b/package/swconfig/Makefile index 72af8c735f..dbc38ec343 100644 --- a/package/swconfig/Makefile +++ b/package/swconfig/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=swconfig -PKG_RELEASE:=4 +PKG_RELEASE:=5 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/kernel.mk diff --git a/package/swconfig/src/cli.c b/package/swconfig/src/cli.c index cf3a519482..23a8e95f9d 100644 --- a/package/swconfig/src/cli.c +++ b/package/swconfig/src/cli.c @@ -249,8 +249,12 @@ int main(int argc, char **argv) printf("%s\n", val.value.s); break; case SWITCH_TYPE_PORTS: - for(i = 0; i < val.len; i++) - printf("%d ", val.value.ports[i]); + for(i = 0; i < val.len; i++) { + printf("%d%s ", + val.value.ports[i].id, + (val.value.ports[i].flags & + SWLIB_PORT_FLAG_TAGGED) ? "t" : ""); + } printf("\n"); break; }