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@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@804 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-06-28 05:18:47 +00:00
committed by Mark Cave-Ayland
parent 50e344721c
commit 6afdc00000

View File

@@ -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 @@ nvram_read( nvram_ibuf_t *nd )
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 @@ nvram_write( nvram_ibuf_t *nd )
n++;
}
PUSH(n);
DPRINTF("write %08x %x -- %x\n", (int)p, len, n );
DPRINTF("write %p %x -- %x\n", p, len, n );
}
/* ( -- size ) */