diff options
Diffstat (limited to 'package/swconfig/src')
-rw-r--r-- | package/swconfig/src/cli.c | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |