qemu-e2k/util
Markus Armbruster 312fd5f290 error: Strip trailing '\n' from error string arguments (again)
Commit 6daf194d and be62a2eb got rid of a bunch, but they keep coming
back.  Tracked down with this Coccinelle semantic patch:

    @r@
	expression err, eno, cls, fmt;
	position p;
    @@
    (
	error_report(fmt, ...)@p
    |
	error_set(err, cls, fmt, ...)@p
    |
	error_set_errno(err, eno, cls, fmt, ...)@p
    |
	error_setg(err, fmt, ...)@p
    |
	error_setg_errno(err, eno, 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>
Message-id: 1360354939-10994-4-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-02-11 08:13:19 -06:00
..
acl.c acl: Free memory allocated with g_malloc() with g_free() 2013-01-15 18:25:41 -06:00
aes.c
bitmap.c
bitops.c bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl 2013-02-02 20:16:00 +00:00
cache-utils.c
compatfd.c
cutils.c cutils: unsigned int parsing functions 2013-02-04 14:38:33 -06:00
envlist.c util: Fix compilation of envlist.c for MinGW 2013-02-02 20:13:19 +00:00
error.c
event_notifier-posix.c
event_notifier-win32.c
hbitmap.c bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl 2013-02-02 20:16:00 +00:00
host-utils.c
iov.c qemu/iovec: Don't assert if sbytes is zero 2013-02-06 08:29:50 -06:00
Makefile.objs add hierarchical bitmap data type and test cases 2013-01-25 18:18:32 +01:00
module.c
notify.c
osdep.c
oslib-posix.c bsd-user: avoid conflict with qemu_vmalloc 2013-01-26 13:18:27 +00:00
oslib-win32.c
path.c Replace non-portable asprintf by g_strdup_printf 2013-01-19 10:24:43 +00:00
qemu-config.c error: Strip trailing '\n' from error string arguments (again) 2013-02-11 08:13:19 -06:00
qemu-error.c
qemu-option.c g_strdup(NULL) returns NULL; simplify 2013-01-30 11:14:46 +01:00
qemu-progress.c
qemu-sockets.c error: Strip trailing '\n' from error string arguments (again) 2013-02-11 08:13:19 -06:00
qemu-thread-posix.c
qemu-thread-win32.c
qemu-timer-common.c
uri.c