summaryrefslogtreecommitdiff
path: root/lsmsr.c
diff options
context:
space:
mode:
authorJike Song <albcamus@gmail.com>2008-12-11 16:21:17 +0800
committerDave Jones <davej@redhat.com>2008-12-16 14:09:07 -0500
commit6d6cd4970d31dae3c213f2c4eaba5830b54e0589 (patch)
tree6592c444cbc6836ceb0570b0b505f8cf7cd0f385 /lsmsr.c
parent27605b3255764815eaf334fa7d153e214c7d0bc6 (diff)
x86info: Fix inline assembly build errors.
For the lastest git tree, there are impossible constraints for inline asm. This patch also fixes a print format issue. $ gcc -dumpversion 4.2.4 $ make -i gcc -Wall -W -Wshadow -g -O2 -MMD -o cpuid.o -c cpuid.c cpuid.c: In function 'native_cpuid': cpuid.c:54: error: impossible register constraint in 'asm' make: [cpuid.o] Error 1 (ignored) scripts/testnodes gcc -Wall -W -Wshadow -g -O2 -MMD -o lsmsr.o -c lsmsr.c In file included from lsmsr.c:27: msr.h: In function 'print_reg': msr.h:126: warning: format '%16.16lx' expects type 'long unsigned int', but argument 5 has type 'uint64_t' lsmsr.c: In function '_show_msr': lsmsr.c:170: warning: passing argument 2 of 'get_msr_val' from incompatible pointer type gcc -Wall -W -Wshadow -g -O2 -o lsmsr lsmsr.o cpuid.o havecpuid.o Signed-off-by: Jike Song <jike.song@sun.com>
Diffstat (limited to 'lsmsr.c')
-rw-r--r--lsmsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsmsr.c b/lsmsr.c
index 6b79349..7951983 100644
--- a/lsmsr.c
+++ b/lsmsr.c
@@ -120,7 +120,7 @@ void version(void)
fprintf(stdout, "%s version %s\n", g.prog, VERSION);
}
-int get_msr_val(unsigned int msr, unsigned long *val)
+int get_msr_val(unsigned int msr, unsigned long long *val)
{
off64_t off;
int err;