« Previous | Next » 

Revision be62a2eb

IDbe62a2ebab29eef7dc66c112d60271890ebbbee2

Added by Markus Armbruster about 12 years ago

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" % (p0.file, p0.line, p0.column, fmt)

Signed-off-by: Markus Armbruster <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences