]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/power/x86/turbostat/turbostat.c
turbostat: Don't attempt to printf an off_t with %zx
[karo-tx-linux.git] / tools / power / x86 / turbostat / turbostat.c
index 9d77f13c2d2548934293662e314828a817d16144..dbcbf27a4d8bf0d3acc0861ba71db8ca67ed55d6 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include <asm/msr.h>
+#include MSRHEADER
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/types.h>
@@ -234,7 +234,7 @@ int get_msr(int cpu, off_t offset, unsigned long long *msr)
        close(fd);
 
        if (retval != sizeof *msr) {
-               fprintf(stderr, "%s offset 0x%zx read failed\n", pathname, offset);
+               fprintf(stderr, "%s offset 0x%llx read failed\n", pathname, (unsigned long long)offset);
                return -1;
        }