diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-06 06:14:11 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-06 06:14:11 +0000 |
commit | 0d133128f78830965349c92817b9539623f26bce (patch) | |
tree | cc4bf518db56270eceaaef2f12d5493659d4962d | |
parent | 59a59209d898d3e882d7a5ca536e2a2b29670a00 (diff) | |
download | msr-tools-0d133128f78830965349c92817b9539623f26bce.tar.gz |
Expand out hex digits in error messages
-rw-r--r-- | rdmsr.c | 4 | ||||
-rw-r--r-- | wrmsr.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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 { @@ -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 { |