projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebbcc0b
)
libxc: fix printf formatting error surfaced by 66f8c6
author
Roger Pau Monne
<roger.pau@citrix.com>
Thu, 19 Jun 2014 16:32:48 +0000
(18:32 +0200)
committer
Ian Campbell
<ian.campbell@citrix.com>
Fri, 27 Jun 2014 13:13:23 +0000
(14:13 +0100)
The privcmd hypercall op and arguments on BSDs are unsigned long, so
use the proper printf format especifiers.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xenctrl_osdep_ENOSYS.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xenctrl_osdep_ENOSYS.c
b/tools/libxc/xenctrl_osdep_ENOSYS.c
index abdf3d514c209a8067fb9d30b313f6665bcdd22e..dd59dcda21321699d75381c2dd52ae7bc9256bc9 100644
(file)
--- a/
tools/libxc/xenctrl_osdep_ENOSYS.c
+++ b/
tools/libxc/xenctrl_osdep_ENOSYS.c
@@
-27,7
+27,11
@@
static int ENOSYS_privcmd_close(xc_interface *xch, xc_osdep_handle h)
static int ENOSYS_privcmd_hypercall(xc_interface *xch, xc_osdep_handle h, privcmd_hypercall_t *hypercall)
{
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+ IPRINTF(xch, "ENOSYS_privcmd %lx: hypercall: %02lu(%#lx,%#lx,%#lx,%#lx,%#lx)\n",
+#else
IPRINTF(xch, "ENOSYS_privcmd %lx: hypercall: %02lld(%#llx,%#llx,%#llx,%#llx,%#llx)\n",
+#endif
h, hypercall->op,
hypercall->arg[0], hypercall->arg[1], hypercall->arg[2],
hypercall->arg[3], hypercall->arg[4]);