From 9f19209c77b2131e89d3e7fb12771fb26ef491b3 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 2 Dec 2012 11:48:57 +0100 Subject: rsrctool: produce an actually usuable entry list of the rsrc file Change-Id: I6c8e5f3faf04741e4a13c1e705e9e869ccf8cfec --- utils/imxtools/sbtools/rsrctool.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/imxtools/sbtools/rsrctool.c') diff --git a/utils/imxtools/sbtools/rsrctool.c b/utils/imxtools/sbtools/rsrctool.c index cb0582245a..53235365ae 100644 --- a/utils/imxtools/sbtools/rsrctool.c +++ b/utils/imxtools/sbtools/rsrctool.c @@ -52,7 +52,7 @@ char *g_out_prefix; static void extract_rsrc_file(struct rsrc_file_t *file) { - + (void) file; } static void usage(void) @@ -76,6 +76,8 @@ static void rsrc_printf(void *user, bool error, color_t c, const char *fmt, ...) { (void) user; (void) error; + if(!g_debug) + return; va_list args; va_start(args, fmt); color(c); @@ -176,6 +178,8 @@ int main(int argc, char **argv) printf("RSRC read failed: %d\n", err); return 1; } + if(g_debug) + printf("%d entries read from file\n", file->nr_entries); color(OFF); if(g_out_prefix) -- cgit v1.2.3