mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
* src/virsh.c: patch from Jim Meyering to use gcc's printf attribute.
Daniel
This commit is contained in:
parent
b31ed75bff
commit
710547590b
@ -1,3 +1,7 @@
|
||||
Thu Nov 8 18:59:39 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: patch from Jim Meyering to use gcc's printf attribute.
|
||||
|
||||
Thu Nov 8 17:06:50 CET 2007 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/virsh.c: patch from Jim Meyering to correct vshCommandOptInt
|
||||
|
@ -254,8 +254,10 @@ static virNetworkPtr vshCommandOptNetworkBy(vshControl * ctl, vshCmd * cmd,
|
||||
vshCommandOptNetworkBy(_ctl, _cmd, _optname, _name, \
|
||||
VSH_BYUUID|VSH_BYNAME)
|
||||
|
||||
static void vshPrintExtra(vshControl * ctl, const char *format, ...);
|
||||
static void vshDebug(vshControl * ctl, int level, const char *format, ...);
|
||||
static void vshPrintExtra(vshControl * ctl, const char *format, ...)
|
||||
ATTRIBUTE_FORMAT(printf, 2, 3);
|
||||
static void vshDebug(vshControl * ctl, int level, const char *format, ...)
|
||||
ATTRIBUTE_FORMAT(printf, 3, 4);
|
||||
|
||||
/* XXX: add batch support */
|
||||
#define vshPrint(_ctl, ...) fprintf(stdout, __VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user