[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: build fix with debugging disabled.
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1295015131 0 # Node ID bfb1b1adf300b6515166f057f14e93741242199f # Parent d276f4528b32f6ea0503b3b2306d116ec1f09a7e 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@xxxxxxxxxx> --- tools/libxc/xenctrl_osdep_ENOSYS.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r d276f4528b32 -r bfb1b1adf300 tools/libxc/xenctrl_osdep_ENOSYS.c --- a/tools/libxc/xenctrl_osdep_ENOSYS.c Fri Jan 14 14:19:55 2011 +0000 +++ b/tools/libxc/xenctrl_osdep_ENOSYS.c Fri Jan 14 14:25:31 2011 +0000 @@ -27,10 +27,10 @@ static int ENOSYS_privcmd_close(xc_inter 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; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |