]> Git Repo - qemu.git/commit - migration.c
error: Strip trailing '\n' from error string arguments (again)
authorMarkus Armbruster <[email protected]>
Fri, 8 Feb 2013 20:22:16 +0000 (21:22 +0100)
committerAnthony Liguori <[email protected]>
Mon, 11 Feb 2013 14:13:19 +0000 (08:13 -0600)
commit312fd5f29097890179793d8bbb59ab18afbe0ad4
tree06b08cae96d4ce9d2c1e01fe1cef2a7f7ebc0b12
parent1a9522cc6ea04968e1169f0195952d0029d5dbb9
error: Strip trailing '\n' from error string arguments (again)

Commit 6daf194d and be62a2eb got rid of a bunch, but they keep coming
back.  Tracked down with this Coccinelle semantic patch:

    @r@
expression err, eno, cls, fmt;
position p;
    @@
    (
error_report(fmt, ...)@p
    |
error_set(err, cls, fmt, ...)@p
    |
error_set_errno(err, eno, cls, fmt, ...)@p
    |
error_setg(err, fmt, ...)@p
    |
error_setg_errno(err, eno, 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 <[email protected]>
Message-id: 1360354939[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
16 files changed:
block/gluster.c
hmp.c
hw/9pfs/virtio-9p-proxy.c
hw/pci/pci.c
hw/qdev.c
hw/qxl.c
hw/vfio_pci.c
hw/vhost_net.c
migration.c
qemu-char.c
target-i386/cpu.c
target-ppc/translate_init.c
ui/console.c
ui/input.c
util/qemu-config.c
util/qemu-sockets.c
This page took 0.034626 seconds and 4 git commands to generate.