From b406c38d03dade199ab575ea5992c26a5806a8bd Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Mon, 19 Dec 2016 15:59:04 +1100 Subject: ui/ncurses: Display IP address in nc-sysinfo Signed-off-by: Samuel Mendoza-Jonas --- ui/ncurses/nc-sysinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui') 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); } -- cgit v1.2.1