Prettyify -L output on Windows
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sun, 19 Feb 2017 10:15:30 +0000 (11:15 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sun, 19 Feb 2017 10:15:33 +0000 (11:15 +0100)
ethsock.c

index 1cbc5da9befb77e268aedf40077e067e10154424..173b43f36242f22511f83ee424716f489259706a 100644 (file)
--- a/ethsock.c
+++ b/ethsock.c
@@ -686,7 +686,7 @@ int ethsock_list_all(void)
                pretty = intf_get_pretty_name(dev->name);
 
                if (!verbosity) {
-                       printf("%s%u", NMRPFLASH_NETALIAS_PREFIX, dev_num);
+                       printf("%s%-2u", NMRPFLASH_NETALIAS_PREFIX, dev_num);
                } else {
                        printf("%s", dev->name);
                }