X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Fncurses%2Fnc-sysinfo.c;h=8252b4529586329fe99da95c06f04dfe50dbf281;hp=ca609cc8a5435cc81e346246cc908547f532b0c7;hb=11c43508e4360456298a6dcb0563614e9a118b41;hpb=d531395a3ff60730238854b127925978f6eab289 diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index ca609cc..8252b45 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -65,11 +65,11 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, line("%-12s %s", _("System type:"), sysinfo->type ?: ""); line("%-12s %s", _("System id:"), sysinfo->identifier ?: ""); - if (sysinfo->n_current) { + if (sysinfo->n_primary) { line(NULL); - line("%s", _("Current platform versions:")); - for (i = 0; i < sysinfo->n_current; i++) { - line("\t%s", sysinfo->platform_current[i] ?: ""); + line("%s", _("Primary platform versions:")); + for (i = 0; i < sysinfo->n_primary; i++) { + line("\t%s", sysinfo->platform_primary[i] ?: ""); } } @@ -112,6 +112,7 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, } if (sysinfo->bmc_mac) { + line(NULL); mac_str(sysinfo->bmc_mac, HWADDR_SIZE, macbuf, sizeof(macbuf)); line(_("Management (BMC) interface")); line(_(" MAC: %s"), macbuf); @@ -128,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); }