]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/checkpatch.pl
checkpatch: Detect newlines in error_report and other error functions
authorJason J. Herne <jjherne@linux.vnet.ibm.com>
Fri, 11 Dec 2015 18:30:42 +0000 (13:30 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 14:16:19 +0000 (15:16 +0100)
commit5d596c245d675000ddee69e87616d537ef273be5
tree78a0fb9d7e16fcdb18ef22de85fba3333a99496c
parent533fdaedeb7f7ae90866312f57249ebbb7e3c97f
checkpatch: Detect newlines in error_report and other error functions

We don't want newlines embedded in error messages. This seems to be a common
problem with new code so let's try to catch it with checkpatch.

This will not catch cases where newlines are inserted into the middle of an
existing multi-line statement. But those cases should be rare.

Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
Message-Id: <1449858642-24267-1-git-send-email-jjherne@linux.vnet.ibm.com>
[Rephrased "Error function text" to "Error messages", dropped
error_vprintf, error_printf, error_printf from $qemu_error_funcs,
because they may legitimately print newlines]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/checkpatch.pl