1 // Error messages should not contain newlines. This script finds
2 // messages that do. Fixing them is manual.
4 expression errp, eno, cls, fmt;
8 error_report(fmt, ...)@p
10 error_setg(errp, fmt, ...)@p
12 error_setg_errno(errp, eno, fmt, ...)@p
14 error_setg_win32(errp, eno, cls, fmt, ...)@p
16 error_prepend(errp, fmt, ...)@p
18 error_setg_file_open(errp, eno, cls, fmt, ...)@p
20 error_reportf_err(errp, fmt, ...)@p
22 error_set(errp, cls, fmt, ...)@p
29 print "%s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt)