From: Tony Breeds Date: Tue, 10 Feb 2009 03:00:28 +0000 (+1100) Subject: Use explicit casts when dumping config data X-Git-Tag: yaboot-1.3.17~8 X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=f82dc817c486c26448514b4ef82d49b34a80dd25 Use explicit casts when dumping config data GCC pointes out that we're in a gray area second/cfg.c: In function ‘cfg_reset’: second/cfg.c:437: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘void *’ second/cfg.c:442: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘void *’ Signed-off-by: Tony Breeds --- diff --git a/second/cfg.c b/second/cfg.c index 381d16b..2787558 100644 --- a/second/cfg.c +++ b/second/cfg.c @@ -431,12 +431,12 @@ static int cfg_reset () curr_table = cf_options; for (walk = curr_table; walk->type != cft_end; walk++) { #if DEBUG - prom_printf("ItemA %s = %s\n", walk->name, walk->data); + prom_printf("ItemA %s = %s\n", walk->name, (char *)walk->data); #endif if (walk->data != NULL) walk->data = NULL; #if DEBUG - prom_printf("ItemB %s = %s\n\n", walk->name, walk->data); + prom_printf("ItemB %s = %s\n\n", walk->name, (char *)walk->data); #endif }