From patchwork Wed Jul 8 00:11:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [16/31] petitboot: Display version on debug builds Date: Tue, 07 Jul 2009 14:11:50 -0000 From: Geoff Levand X-Patchwork-Id: 29558 Message-Id: <20090708001136.015862140@am.sony.com> To: Jeremy Kerr Cc: cbe-oss-dev@ozlabs.org Display the program version in the main menu for debug builds. Signed-off-by: Geoff Levand --- ui/ncurses/ps3-cui.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/ui/ncurses/ps3-cui.c +++ b/ui/ncurses/ps3-cui.c @@ -327,7 +327,12 @@ static struct pmenu *ps3_mm_init(struct } 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");