From c56e5ad7254ddf7ee9f1f016150de9e28c3ff57e Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 27 May 2010 15:41:15 +0000 Subject: fix warnings. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5594 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/intel/i82830/i82830_smihandler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/northbridge') diff --git a/src/northbridge/intel/i82830/i82830_smihandler.c b/src/northbridge/intel/i82830/i82830_smihandler.c index f20b099e9c..cf5840296a 100644 --- a/src/northbridge/intel/i82830/i82830_smihandler.c +++ b/src/northbridge/intel/i82830/i82830_smihandler.c @@ -217,7 +217,7 @@ static void mbi_call(u8 subf, banner_id_t *banner_id) printk(BIOS_DEBUG, "%c", mbi_header->name[j]); printk(BIOS_DEBUG, "' found.\n"); #ifdef DEBUG_SMI_I82830 - dump(banner_id, sizeof(obj_header_t) + 16); + dump((u8 *)banner_id, sizeof(obj_header_t) + ALIGN(mbi_header->name_len, 16)); #endif break; } @@ -233,7 +233,7 @@ static void mbi_call(u8 subf, banner_id_t *banner_id) mbi_header_t *mbi_header = NULL; printk(BIOS_DEBUG, "|- MBI_GetObject\n"); #ifdef DEBUG_SMI_I82830 - printk(BIOS_DEBUG, "| |- handle = %016lx\n", getobj->handle); + printk(BIOS_DEBUG, "| |- handle = %016Lx\n", getobj->handle); #endif printk(BIOS_DEBUG, "| |- objnum = %d\n", getobj->objnum); printk(BIOS_DEBUG, "| |- start = %x\n", getobj->start); @@ -262,8 +262,8 @@ static void mbi_call(u8 subf, banner_id_t *banner_id) getobj->banner.retsts = MSH_OK; #ifdef DEBUG_SMI_I82830 - dump(banner_id, sizeof(*getobj)); - dump(getobj->buffer + OBJ_OFFSET, len); + dump((u8 *)banner_id, sizeof(*getobj)); + dump((u8 *)getobj->buffer + OBJ_OFFSET, len); #endif break; } -- cgit v1.2.3