ui/ncurses: Clear remaining space when drawing help line
[petitboot] / ui / ncurses / nc-sysinfo.c
index 5d64550f40bc98a567f7ef87f90bec5085a331d8..8252b4529586329fe99da95c06f04dfe50dbf281 100644 (file)
@@ -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] ?: "");
                }
        }
 
@@ -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);
        }