From 72928ed32ab3684be74e4a3b90329dee7cfa6bbb Mon Sep 17 00:00:00 2001 From: Sam Mendoza-Jonas Date: Fri, 26 Feb 2016 10:39:55 +1100 Subject: 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 --- ui/ncurses/nc-sysinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ui') 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] ?: ""); } } -- cgit v1.2.1