1 // Error messages should not contain newlines. This script finds
2 // messages that do. Fixing them is manual.
4 expression errp, err, eno, cls, fmt, ap;
8 error_vreport(fmt, ap)@p
10 warn_vreport(fmt, ap)@p
12 info_vreport(fmt, ap)@p
14 error_report(fmt, ...)@p
16 warn_report(fmt, ...)@p
18 info_report(fmt, ...)@p
20 error_report_once(fmt, ...)@p
22 warn_report_once(fmt, ...)@p
24 error_setg(errp, fmt, ...)@p
26 error_setg_errno(errp, eno, fmt, ...)@p
28 error_setg_win32(errp, eno, cls, fmt, ...)@p
30 error_propagate_prepend(errp, err, fmt, ...)@p
32 error_vprepend(errp, fmt, ap)@p
34 error_prepend(errp, fmt, ...)@p
36 error_setg_file_open(errp, eno, cls, fmt, ...)@p
38 warn_reportf_err(errp, fmt, ...)@p
40 error_reportf_err(errp, fmt, ...)@p
42 error_set(errp, cls, fmt, ...)@p
49 print("%s:%s:%s:%s" % (p[0].file, p[0].line, p[0].column, fmt))