diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-01-14 14:25:31 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-01-14 14:25:31 +0000 |
commit | 2f95efa271822f5c86ea0b89c2532cad2f1c4da1 (patch) | |
tree | d830c2c8bc4b39f1fd0199e1a60f0fff31223d96 /tools/libxc/xenctrl_osdep_ENOSYS.c | |
parent | 00e9c7bcb6397e85a8596cda619997982b6411e7 (diff) | |
download | xen-2f95efa271822f5c86ea0b89c2532cad2f1c4da1.tar.gz xen-2f95efa271822f5c86ea0b89c2532cad2f1c4da1.tar.bz2 xen-2f95efa271822f5c86ea0b89c2532cad2f1c4da1.zip |
libxc: build fix with debugging disabled.
Currently hypercalls have only 5 arguments, hypercall->arg[0..4]. Do
not try and print arg[5] else:
cc1: warnings being treated as errors
xenctrl_osdep_ENOSYS.c: In function
'ENOSYS_privcmd_hypercall':
xenctrl_osdep_ENOSYS.c:30: error: array subscript is above
array bounds
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl_osdep_ENOSYS.c')
-rw-r--r-- | tools/libxc/xenctrl_osdep_ENOSYS.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/xenctrl_osdep_ENOSYS.c b/tools/libxc/xenctrl_osdep_ENOSYS.c index 90ae348a58..4c156e999e 100644 --- a/tools/libxc/xenctrl_osdep_ENOSYS.c +++ b/tools/libxc/xenctrl_osdep_ENOSYS.c @@ -27,10 +27,10 @@ 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) { - IPRINTF(xch, "ENOSYS_privcmd %p: hypercall: %02lld(%#llx,%#llx,%#llx,%#llx,%#llx,%#llx)\n", + IPRINTF(xch, "ENOSYS_privcmd %p: hypercall: %02lld(%#llx,%#llx,%#llx,%#llx,%#llx)\n", h, hypercall->op, hypercall->arg[0], hypercall->arg[1], hypercall->arg[2], - hypercall->arg[3], hypercall->arg[4], hypercall->arg[5]); + hypercall->arg[3], hypercall->arg[4]); return -ENOSYS; } |