[coreboot-gerrit] New patch to review for coreboot: yabel: explicitly cast values to match printk expectations

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Wed Oct 21 22:07:10 CEST 2015


Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12116

-gerrit

commit 1c95ccfff71ea782c1377bd8e3df2f04174388e3
Author: Stefan Reinauer <reinauer at chromium.org>
Date:   Wed Oct 21 13:05:32 2015 -0700

    yabel: explicitly cast values to match printk expectations
    
    Change-Id: Id2230ecd800b138b6ccbbac318e71c9edf076c75
    Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
 src/device/oprom/yabel/device.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/device/oprom/yabel/device.h b/src/device/oprom/yabel/device.h
index a8dfc8c..b8891ee 100644
--- a/src/device/oprom/yabel/device.h
+++ b/src/device/oprom/yabel/device.h
@@ -176,10 +176,10 @@ dumpHID(void)
 	u64 hid;
 	//HID1 = 1009
 	__asm__ __volatile__("mfspr %0, 1009":"=r"(hid));
-	printf("HID1: %016llx\n", hid);
+	printf("HID1: %016llx\n", (unsigned long long)hid);
 	//HID4 = 1012
 	__asm__ __volatile__("mfspr %0, 1012":"=r"(hid));
-	printf("HID4: %016llx\n", hid);
+	printf("HID4: %016llx\n", (unsigned long long)hid);
 }
 
 #endif



More information about the coreboot-gerrit mailing list