projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[x86] add missing symbols to default config
[openwrt.git]
/
package
/
swconfig
/
src
/
cli.c
diff --git
a/package/swconfig/src/cli.c
b/package/swconfig/src/cli.c
index
cf3a519
..
23a8e95
100644
(file)
--- 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:
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;
}
printf("\n");
break;
}
This page took
0.03015 seconds
and
4
git commands to generate.