Expand out hex digits in error messages
diff --git a/rdmsr.c b/rdmsr.c
index 40cb3f1..5f173d7 100644
--- a/rdmsr.c
+++ b/rdmsr.c
@@ -186,8 +186,8 @@
 
 	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 @@
 			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 {