Home
last modified time | relevance | path

Searched hist:be62a2ebab29eef7dc66c112d60271890ebbbee2 (Results 1 – 2 of 2) sorted by relevance

/qemu/hw/usb/
H A Dbus.cbe62a2ebab29eef7dc66c112d60271890ebbbee2 Tue Dec 20 17:13:08 UTC 2011 Markus Armbruster <armbru@redhat.com> 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>
H A Dredirect.cbe62a2ebab29eef7dc66c112d60271890ebbbee2 Tue Dec 20 17:13:08 UTC 2011 Markus Armbruster <armbru@redhat.com> 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>