diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-26 10:39:55 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-26 12:39:37 +1100 |
commit | 72928ed32ab3684be74e4a3b90329dee7cfa6bbb (patch) | |
tree | 27a1237cee90d222e0dc7b0e361e4c683270ec57 /ui | |
parent | 11284780b9aa525dd659bd85d6374040630db008 (diff) | |
download | petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.zip petitboot-72928ed32ab3684be74e4a3b90329dee7cfa6bbb.tar.gz |
Use 'Primary' instead of 'Current' for flash sides
When queried libflash will return the 'first' flash side (ie. the one
with the lowest TOC address), however we label this the 'Current' side
which is incorrect if the machine has booted from the alternate side.
A future fix will inlcude additional platform logic to determine which
flash side is current; in the interim label the first flash side as
'Primary' instead of 'Current'.
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index 5d64550..ce8957c 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] ?: ""); } } |