aboutsummaryrefslogtreecommitdiffstats
path: root/hw/milkymist-minimac2.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/milkymist-minimac2.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/milkymist-minimac2.c')
-rw-r--r--hw/milkymist-minimac2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/milkymist-minimac2.c b/hw/milkymist-minimac2.c
index c4e28187b..cd360264c 100644
--- a/hw/milkymist-minimac2.c
+++ b/hw/milkymist-minimac2.c
@@ -234,20 +234,20 @@ static void minimac2_tx(MilkymistMinimac2State *s)
uint8_t *buf = s->tx_buf;
if (txcount < 64) {
- error_report("milkymist_minimac2: ethernet frame too small (%u < %u)\n",
+ error_report("milkymist_minimac2: ethernet frame too small (%u < %u)",
txcount, 64);
goto err;
}
if (txcount > MINIMAC2_MTU) {
- error_report("milkymist_minimac2: MTU exceeded (%u > %u)\n",
+ error_report("milkymist_minimac2: MTU exceeded (%u > %u)",
txcount, MINIMAC2_MTU);
goto err;
}
if (memcmp(buf, preamble_sfd, 8) != 0) {
error_report("milkymist_minimac2: frame doesn't contain the preamble "
- "and/or the SFD (%02x %02x %02x %02x %02x %02x %02x %02x)\n",
+ "and/or the SFD (%02x %02x %02x %02x %02x %02x %02x %02x)",
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]);
goto err;
}