[OpenBIOS] [commit] r804 - trunk/openbios-devel/packages

repository service svn at openbios.org
Mon Jun 28 07:18:47 CEST 2010


Author: mcayland
Date: Mon Jun 28 07:18:47 2010
New Revision: 804
URL: http://tracker.coreboot.org/trac/openbios/changeset/804

Log:
Commit a couple of minor fixes to packages/nvram.c which allow it to be compiled with debugging enabled on platforms where 
sizeof(int) != sizeof(void *).

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at siriusit.co.uk>

Modified:
   trunk/openbios-devel/packages/nvram.c

Modified: trunk/openbios-devel/packages/nvram.c
==============================================================================
--- trunk/openbios-devel/packages/nvram.c	Mon Jun 28 07:16:15 2010	(r803)
+++ trunk/openbios-devel/packages/nvram.c	Mon Jun 28 07:18:47 2010	(r804)
@@ -19,6 +19,8 @@
 #include "arch/common/nvram.h"
 #include "packages/nvram.h"
 
+//#define CONFIG_DEBUG_NVRAM 1
+
 #ifdef CONFIG_DEBUG_NVRAM
 #define DPRINTF(fmt, args...) \
 do { printk("NVRAM: " fmt , ##args); } while (0)
@@ -262,7 +264,7 @@
 		n++;
 	}
 	PUSH(n);
-	DPRINTF("read %08x %x -- %x\n", (int)p, len, n);
+	DPRINTF("read %p %x -- %x\n", p, len, n);
 }
 
 /* ( addr len -- actual ) */
@@ -278,7 +280,7 @@
 		n++;
 	}
 	PUSH(n);
-	DPRINTF("write %08x %x -- %x\n", (int)p, len, n );
+	DPRINTF("write %p %x -- %x\n", p, len, n );
 }
 
 /* ( -- size ) */



More information about the OpenBIOS mailing list