diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:40 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-04-16 19:32:40 +0000 |
commit | f7cc3d576cec068f7722da7d86885164cdf99823 (patch) | |
tree | 86b92e62ab0b6fc27012d8950b2168155cd4056a /package/swconfig/src/cli.c | |
parent | e1079c515a1d2ff08d829e11de6827741d2154f7 (diff) | |
download | master-31e0f0ae-f7cc3d576cec068f7722da7d86885164cdf99823.tar.gz master-31e0f0ae-f7cc3d576cec068f7722da7d86885164cdf99823.tar.bz2 master-31e0f0ae-f7cc3d576cec068f7722da7d86885164cdf99823.zip |
swconfig: Add cpu port index to help output.
Let swconfig provide the cpu port index in its help page. This is
needed as e.g. Atheros switches have their cpu port at port 0, not
port 5.
This could allow e.g. luci to get a rough overview of the layout of
the switch.
Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>
SVN-Revision: 20939
Diffstat (limited to 'package/swconfig/src/cli.c')
-rw-r--r-- | package/swconfig/src/cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/swconfig/src/cli.c b/package/swconfig/src/cli.c index 76593ba14a..eea88d812f 100644 --- a/package/swconfig/src/cli.c +++ b/package/swconfig/src/cli.c @@ -74,7 +74,7 @@ print_attrs(const struct switch_attr *attr) static void list_attributes(struct switch_dev *dev) { - printf("Switch %d: %s(%s), ports: %d, vlans: %d\n", dev->id, dev->dev_name, dev->name, dev->ports, dev->vlans); + printf("Switch %d: %s(%s), ports: %d (cpu @ %d), vlans: %d\n", dev->id, dev->dev_name, dev->name, dev->ports, dev->cpu_port, dev->vlans); printf(" --switch\n"); print_attrs(dev->ops); printf(" --vlan\n"); |