summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
committerGeoff Levand <geoffrey.levand@am.sony.com>2009-07-09 10:40:44 -0700
commitcc8ecf78b67d048c2c06b280fd5755290a0ed4fa (patch)
tree0cc2140f4e326f410e23fe2ee9a34807eb8e8550 /ui
parent192291bf0e5ae7ad714c863926ed0b8981102e9c (diff)
downloadtalos-petitboot-cc8ecf78b67d048c2c06b280fd5755290a0ed4fa.tar.gz
talos-petitboot-cc8ecf78b67d048c2c06b280fd5755290a0ed4fa.zip
Display version on debug builds
Display the program version in the main menu for debug builds. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/ncurses/ps3-cui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/ncurses/ps3-cui.c b/ui/ncurses/ps3-cui.c
index 71a2177..62ca7fa 100644
--- a/ui/ncurses/ps3-cui.c
+++ b/ui/ncurses/ps3-cui.c
@@ -327,7 +327,12 @@ static struct pmenu *ps3_mm_init(struct ps3_cui *ps3_cui)
}
m->hot_key = ps3_hot_key;
+#if defined(DEBUG)
+ m->scr.frame.title = talloc_strdup(m,
+ "Petitboot PS3 (ver " PACKAGE_VERSION ")");
+#else
m->scr.frame.title = talloc_strdup(m, "Petitboot PS3");
+#endif
m->scr.frame.help = talloc_strdup(m,
"ESC=exit, Enter=accept, E,e=edit");
m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot");
OpenPOWER on IntegriCloud