Author: stepan
Date: Sun May  9 17:15:08 2010
New Revision: 5536
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5536

Log:
i82830: fix debugging output and clarify bracketing

Signed-off-by: Stefan Reinauer <[email protected]>
Acked-by: Stefan Reinauer <[email protected]>

Modified:
   trunk/src/northbridge/intel/i82830/i82830_smihandler.c

Modified: trunk/src/northbridge/intel/i82830/i82830_smihandler.c
==============================================================================
--- trunk/src/northbridge/intel/i82830/i82830_smihandler.c      Sun May  9 
01:28:33 2010        (r5535)
+++ trunk/src/northbridge/intel/i82830/i82830_smihandler.c      Sun May  9 
17:15:08 2010        (r5536)
@@ -258,11 +258,11 @@
                        if (getobj->objnum == count) {
                                printk(BIOS_DEBUG, "|  |- len = %x\n", len);
                                memcpy((void *)(getobj->buffer + OBJ_OFFSET),
-                                               ((char *)mbi_header) + 0x20 , 
(len > getobj->buflen ? getobj->buflen : len));
+                                               ((char *)mbi_header) + 0x20 , 
(len > getobj->buflen) ? getobj->buflen : len);
 
                                getobj->banner.retsts = MSH_OK;
 #ifdef DEBUG_SMI_I82830
-                               dump(banner_id, sizeof(getobj));
+                               dump(banner_id, sizeof(*getobj));
                                dump(getobj->buffer + OBJ_OFFSET, len);
 #endif
                                break;

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to