From 56f15bb5f9d1815311c5d511ae1a57d43f290e98 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 16 Apr 2010 19:32:40 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20939 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/swconfig/src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/swconfig/src/cli.c') diff --git a/package/swconfig/src/cli.c b/package/swconfig/src/cli.c index 76593ba14..eea88d812 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"); -- cgit v1.2.3