swconfig: Add cpu port index to help output.
[openwrt/staging/wigyori.git] / package / swconfig / src / cli.c
index 76593ba14a160751f26bd3a04bd9d900014542da..eea88d812fb87be3c99089b93c67000ec6a06a8b 100644 (file)
@@ -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");