[coreboot] [patch] avoid printf format warning in debugging path

Jonathan A. Kollasch jakllsch at kollasch.net
Tue Oct 5 21:34:02 CEST 2010


Use %p instead of %x to print void *.

Signed-off-by: Jonathan Kollasch <jakllsch at kollasch.net>
Acked-by: Jonathan Kollasch <jakllsch at kollasch.net>
---
-------------- next part --------------
Index: src/northbridge/amd/amdk8/debug.c
===================================================================
--- src/northbridge/amd/amdk8/debug.c	(revision 5914)
+++ src/northbridge/amd/amdk8/debug.c	(working copy)
@@ -6,7 +6,7 @@
 static inline void print_debug_addr(const char *str, void *val)
 {
 #if CONFIG_DEBUG_CAR
-		printk(BIOS_DEBUG, "------Address debug: %s%x------\n", str, val);
+	printk(BIOS_DEBUG, "------Address debug: %s%p------\n", str, val);
 #endif
 }
 


More information about the coreboot mailing list