cpuid.c32: print unsigned values syslinux-4.00-pre41
authorH. Peter Anvin <hpa@zytor.com>
Tue, 11 May 2010 20:00:17 +0000 (13:00 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 11 May 2010 20:00:17 +0000 (13:00 -0700)
Print unsigned values; formatting was wrong for unsigned values
anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/cpuid.c

index 62a756e..266fd07 100644 (file)
@@ -20,7 +20,7 @@ static void dump_reg(const char *name, uint32_t val)
 {
     int i;
 
-    printf("%-3s : %10d 0x%08x ", name, val, val);
+    printf("%-3s : %10u 0x%08x ", name, val, val);
 
     for (i = 3; i >= 0; i--) {
        uint8_t c = val >> (i*8);