From: Samuel Mendoza-Jonas Date: Mon, 19 Dec 2016 04:59:04 +0000 (+1100) Subject: ui/ncurses: Display IP address in nc-sysinfo X-Git-Tag: v1.4.0^0 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=b406c38d03dade199ab575ea5992c26a5806a8bd;hp=0d3caaf8e9a75e9b6ebc9427c75ed2914c60439d ui/ncurses: Display IP address in nc-sysinfo Signed-off-by: Samuel Mendoza-Jonas --- diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index ce8957c..8252b45 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -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); }