]> git.ozlabs.org Git - tonyb-yaboot.git/commitdiff
Use explicit casts when dumping config data
authorTony Breeds <tony@bakeyournoodle.com>
Tue, 10 Feb 2009 03:00:28 +0000 (14:00 +1100)
committerTony Breeds <tony@bakeyournoodle.com>
Tue, 18 Oct 2011 04:11:10 +0000 (15:11 +1100)
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 <tony@bakeyournoodle.com>
second/cfg.c

index 381d16b349175927e945608884d8d9fa8d865d5e..2787558181a16768f957666b6f9cbc7ae720ac0a 100644 (file)
@@ -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
     }