commit - 0d6994c7f218f2a4d98889db60c6d0ce3d0127d7
commit + 04ec7d6ac385e91e23549b7d55c3fdc0065a054c
blob - 5bd57bc09a6315395a0db80b03adf24eee1c4e72
blob + 633383123efa3f7e46635d23d1a4376d279dbee5
--- mc5000.c
+++ mc5000.c
if (read_message(&m) == -1) /* junk */
continue;
- if (m.type == REPORT)
- fprintf(stderr, "spurious report from MCU #%d: "
- "acc %d, dat %d, %sprogrammed\n",
- m.source, m.acc, m.dat, m.prog ? "" : "not ");
- else if (m.source != mcu)
- fprintf(stderr, "spurious response from MCU #%d\n",
+ if (m.type == REPORT) {
+ if (vflag)
+ fprintf(stderr, "spurious report from MCU #%d: "
+ "acc %d, dat %d, %sprogrammed\n", m.source,
+ m.acc, m.dat, m.prog ? "" : "not ");
+ } else if (m.source != mcu)
+ fprintf(stderr, "unexpected response from MCU #%d\n",
m.source);
else
break; /* success */