diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-11-01 10:31:00 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-01 15:32:52 +0800 |
commit | 089d0a6eb769d531129a7cd1061493a1a24b4bef (patch) | |
tree | 62e6b58e6a9cd9b19ac9f7a8986b9d01cfe5ec70 /ui/ncurses/nc-menu.h | |
parent | 896da834e7126759ef69c33347055c593abedde3 (diff) | |
download | talos-petitboot-089d0a6eb769d531129a7cd1061493a1a24b4bef.tar.gz talos-petitboot-089d0a6eb769d531129a7cd1061493a1a24b4bef.zip |
logging: Clean up debug logs
We have quite a few pb_logs which should be pb_debug. This change moves
developer-specific info to pb_debug.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-menu.h')
-rw-r--r-- | ui/ncurses/nc-menu.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/ui/ncurses/nc-menu.h b/ui/ncurses/nc-menu.h index 3b7bc88..4beffb0 100644 --- a/ui/ncurses/nc-menu.h +++ b/ui/ncurses/nc-menu.h @@ -114,26 +114,18 @@ static inline struct pmenu *pmenu_from_scr(struct nc_scr *scr) /* debug routines */ -#if defined(DEBUG) -enum {do_debug = 1}; -#else -enum {do_debug = 0}; -#endif - static inline void pmenu_dump_item(const ITEM *item) { - if (do_debug) - pb_log("%p %s\n", item, (item ? item->name.str : "(null)")); + pb_debug("%p %s\n", item, (item ? item->name.str : "(null)")); } static inline void pmenu_dump_items(ITEM *const *items, unsigned int count) { unsigned int i; - if (do_debug) - for (i = 0; i < count; i++) - pb_log("%u: %p %s\n", i, items[i], - (items[i] ? items[i]->name.str : "(null)")); + for (i = 0; i < count; i++) + pb_debug("%u: %p %s\n", i, items[i], + (items[i] ? items[i]->name.str : "(null)")); } #endif |