summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-05-11 13:00:17 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-05-11 13:00:17 -0700
commitdb43fd0d0c343832974105bdc5848898855b0971 (patch)
treea909476962d85691e0ce8966617a1e8342ac63b9
parent59eed332a52ccf37dfb7ce288df68d3f4671e646 (diff)
downloadsyslinux-db43fd0d0c343832974105bdc5848898855b0971.tar.gz
cpuid.c32: print unsigned valuessyslinux-4.00-pre41
Print unsigned values; formatting was wrong for unsigned values anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/modules/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/cpuid.c b/com32/modules/cpuid.c
index 62a756e5..266fd077 100644
--- a/com32/modules/cpuid.c
+++ b/com32/modules/cpuid.c
@@ -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);