debuggers.hg

changeset 22805:bfb1b1adf300

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>
author Ian Campbell <ian.campbell@citrix.com>
date Fri Jan 14 14:25:31 2011 +0000 (2011-01-14)
parents d276f4528b32
children 59396addc940
files tools/libxc/xenctrl_osdep_ENOSYS.c
line diff
     1.1 --- a/tools/libxc/xenctrl_osdep_ENOSYS.c	Fri Jan 14 14:19:55 2011 +0000
     1.2 +++ b/tools/libxc/xenctrl_osdep_ENOSYS.c	Fri Jan 14 14:25:31 2011 +0000
     1.3 @@ -27,10 +27,10 @@ static int ENOSYS_privcmd_close(xc_inter
     1.4  
     1.5  static int ENOSYS_privcmd_hypercall(xc_interface *xch, xc_osdep_handle h, privcmd_hypercall_t *hypercall)
     1.6  {
     1.7 -    IPRINTF(xch, "ENOSYS_privcmd %p: hypercall: %02lld(%#llx,%#llx,%#llx,%#llx,%#llx,%#llx)\n",
     1.8 +    IPRINTF(xch, "ENOSYS_privcmd %p: hypercall: %02lld(%#llx,%#llx,%#llx,%#llx,%#llx)\n",
     1.9              h, hypercall->op,
    1.10              hypercall->arg[0], hypercall->arg[1], hypercall->arg[2],
    1.11 -            hypercall->arg[3], hypercall->arg[4], hypercall->arg[5]);
    1.12 +            hypercall->arg[3], hypercall->arg[4]);
    1.13      return -ENOSYS;
    1.14  }
    1.15