summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-06 06:14:11 +0000
committerH. Peter Anvin <hpa@zytor.com>2008-02-06 06:14:11 +0000
commit0d133128f78830965349c92817b9539623f26bce (patch)
treecc4bf518db56270eceaaef2f12d5493659d4962d
parent59a59209d898d3e882d7a5ca536e2a2b29670a00 (diff)
downloadmsr-tools-0d133128f78830965349c92817b9539623f26bce.tar.gz
Expand out hex digits in error messages
-rw-r--r--rdmsr.c4
-rw-r--r--wrmsr.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/rdmsr.c b/rdmsr.c
index 40cb3f1..5f173d7 100644
--- a/rdmsr.c
+++ b/rdmsr.c
@@ -186,8 +186,8 @@ int main(int argc, char *argv[])
if (pread(fd, &data, sizeof data, reg) != sizeof data) {
if (errno == EIO) {
- fprintf(stderr,
- "rdmsr: CPU %d cannot read MSR 0x%"PRIx32"\n",
+ fprintf(stderr, "rdmsr: CPU %d cannot read "
+ "MSR 0x%08"PRIx32"\n",
cpu, reg);
exit(4);
} else {
diff --git a/wrmsr.c b/wrmsr.c
index 0da2b7b..ab87921 100644
--- a/wrmsr.c
+++ b/wrmsr.c
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
if (errno == EIO) {
fprintf(stderr,
"wrmsr: CPU %d cannot set MSR "
- "0x%"PRIx32" to 0x%"PRIx64"\n",
+ "0x%08"PRIx32" to 0x%016"PRIx64"\n",
cpu, reg, data);
exit(4);
} else {