]> git.proxmox.com Git - mirror_qemu.git/commit
Strip trailing '\n' from error_report()'s first argument (again)
authorMarkus Armbruster <armbru@redhat.com>
Tue, 20 Dec 2011 17:13:08 +0000 (18:13 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 6 Jan 2012 15:07:00 +0000 (15:07 +0000)
commitbe62a2ebab29eef7dc66c112d60271890ebbbee2
tree1002b4c87da2f01304b89a1dc49e20b97cb59254
parentd70d6b31091ab522ce793a52559e3dd9f9913b32
Strip trailing '\n' from error_report()'s first argument (again)

Commit 6daf194d got rid of them, but Hans and Gerd added some more
lately.  Tracked down with this Coccinelle semantic patch:

@r@
    expression fmt;
    position p;
@@
    error_report(fmt, ...)@p
@script:python@
    fmt << r.fmt;
    p << r.p;
@@
if "\\n" in str(fmt):
    print "%s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt)

Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/usb-bus.c
usb-redir.c