]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Display IP address in nc-sysinfo v1.4.0
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 19 Dec 2016 04:59:04 +0000 (15:59 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 20 Dec 2016 05:40:22 +0000 (16:40 +1100)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
ui/ncurses/nc-sysinfo.c

index ce8957cdfe7f9dcd3aa6cbb4972c7891a721df79..8252b4529586329fe99da95c06f04dfe50dbf281 100644 (file)
@@ -129,10 +129,11 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen,
                if_info_mac_str(info, macbuf, sizeof(macbuf));
 
                line("%s:", info->name);
-               line(_(" MAC:  %s"), macbuf);
+               line(_(" MAC:        %s"), macbuf);
+               line(_(" IP Address: %s"), info->address ?: _("none"));
                /* TRANSLATORS: these "up" / "down" strings refer to the
                 * link status for a network connection. */
-               line(_(" link: %s"), info->link ? _("up") : _("down"));
+               line(_(" link:       %s"), info->link ? _("up") : _("down"));
                line(NULL);
        }