From: Geoff Levand Date: Thu, 9 Jul 2009 17:40:44 +0000 (-0700) Subject: Display version on debug builds X-Git-Tag: v1.0.0~845 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=cc8ecf78b67d048c2c06b280fd5755290a0ed4fa Display version on debug builds Display the program version in the main menu for debug builds. Signed-off-by: Geoff Levand --- 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");