aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-ccid.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-06-22 14:03:54 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-06-24 09:13:36 +0100
commit6daf194dde15acda153b824299f36f12dfa527a6 (patch)
treee501eb043697f6ec77338ef8fe4cb5602177fdb0 /hw/usb-ccid.c
parentdb78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8 (diff)
Strip trailing '\n' from error_report()'s first argument
error_report() prepends location, and appends a newline. The message constructed from the arguments should not contain a newline. Fix the obvious offenders. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw/usb-ccid.c')
-rw-r--r--hw/usb-ccid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-ccid.c b/hw/usb-ccid.c
index 59c6431676..524b841da1 100644
--- a/hw/usb-ccid.c
+++ b/hw/usb-ccid.c
@@ -1240,7 +1240,7 @@ static int ccid_card_init(DeviceState *qdev, DeviceInfo *base)
return -1;
}
if (s->card != NULL) {
- error_report("Warning: usb-ccid card already full, not adding\n");
+ error_report("Warning: usb-ccid card already full, not adding");
return -1;
}
ret = info->initfn ? info->initfn(card) : ret;