]> git.proxmox.com Git - qemu.git/commit - trace-events
hw/9pfs: Fix broken compilation caused by wrong trace events
authorStefan Weil <sw@weilnetz.de>
Thu, 20 Oct 2011 19:55:58 +0000 (21:55 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 20 Oct 2011 20:30:59 +0000 (15:30 -0500)
commitc76eaf13975130768070ecd2d4f3107eb69ab757
treecfa6c0902e31f5cf7b45390fe9980bc2faf8091c
parenta6e43daa732b90b9ca58e7c38f6faa5a82f4b176
hw/9pfs: Fix broken compilation caused by wrong trace events

Commit c572f23a3e7180dbeab5e86583e43ea2afed6271 added trace events
with mismatching format string and arguments.

gcc reports these errors:

In file included from trace.c:2:0:
trace.h: In function ‘trace_v9fs_attach’:
trace.h:2850:9: error: too many arguments for format [-Werror=format-extra-args]
trace.h: In function ‘trace_v9fs_wstat’:
trace.h:3039:9: error: too many arguments for format [-Werror=format-extra-args]
trace.h: In function ‘trace_v9fs_mkdir’:
trace.h:3088:9: error: too many arguments for format [-Werror=format-extra-args]
trace.h: In function ‘trace_v9fs_mkdir_return’:
trace.h:3095:9: error: too many arguments for format [-Werror=format-extra-args]

Fix the format strings and also use %u instead of %d for unsigned values
in the changed strings. There are more minor errors of this kind
which I did not fix because that would make the review more difficult.

v2: Fixed position of } for v9fs_mkdir_return.

Cc: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
trace-events