Clang reports:
xen-cpuid.c:307:29: error: format specifies type 'unsigned long' but the
argument has type 'uint64_t' (aka 'unsigned long long') [-Werror,-Wformat]
msrs[l].idx, msrs[l].val);
^~~~~~~~~~~
Use PRIx64 instead.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
#include <string.h>
#include <errno.h>
#include <limits.h>
+#include <inttypes.h>
#include <xenctrl.h>
printf(" MSRs:\n");
printf(" %-8s -> %-16s\n", "index", "value");
for ( l = 0; l < nr_msrs; ++l )
- printf(" %08x -> %016lx\n",
+ printf(" %08x -> %016"PRIx64"\n",
msrs[l].idx, msrs[l].val);
}