mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
db78ef5b0a
commit
6daf194dde
16 changed files with 76 additions and 74 deletions
|
@ -131,7 +131,7 @@ static inline void softusb_read_dmem(MilkymistSoftUsbState *s,
|
|||
{
|
||||
if (offset + len >= s->dmem_size) {
|
||||
error_report("milkymist_softusb: read dmem out of bounds "
|
||||
"at offset 0x%x, len %d\n", offset, len);
|
||||
"at offset 0x%x, len %d", offset, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -143,7 +143,7 @@ static inline void softusb_write_dmem(MilkymistSoftUsbState *s,
|
|||
{
|
||||
if (offset + len >= s->dmem_size) {
|
||||
error_report("milkymist_softusb: write dmem out of bounds "
|
||||
"at offset 0x%x, len %d\n", offset, len);
|
||||
"at offset 0x%x, len %d", offset, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -155,7 +155,7 @@ static inline void softusb_read_pmem(MilkymistSoftUsbState *s,
|
|||
{
|
||||
if (offset + len >= s->pmem_size) {
|
||||
error_report("milkymist_softusb: read pmem out of bounds "
|
||||
"at offset 0x%x, len %d\n", offset, len);
|
||||
"at offset 0x%x, len %d", offset, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ static inline void softusb_write_pmem(MilkymistSoftUsbState *s,
|
|||
{
|
||||
if (offset + len >= s->pmem_size) {
|
||||
error_report("milkymist_softusb: write pmem out of bounds "
|
||||
"at offset 0x%x, len %d\n", offset, len);
|
||||
"at offset 0x%x, len %d", offset, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue