tools/libxc: Annotate xc_osdep_log with __attribute__((format))
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 Jun 2014 15:41:07 +0000 (16:41 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 10 Jun 2014 12:46:45 +0000 (13:46 +0100)
commit66f8c6391d59a2b466a4368ff78b1f527c94c7f6
tree9bec847bde45b73ca78c522c6c4170ea013e94d1
parentf1f009af79b05ad99561bca4521499f2c7cbd00c
tools/libxc: Annotate xc_osdep_log with __attribute__((format))

This helps the compiler spot printf formatting errors.

Fix up resulting errors in xenctrl_osdep_ENOSYS.c.  Substitute %p for the
slightly less bad %lx when trying to format an opaque structure.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xenctrl_osdep_ENOSYS.c
tools/libxc/xenctrlosdep.h