diff options
author | Leo C | 2016-08-25 00:24:07 +0200 |
---|---|---|
committer | Leo C | 2016-08-25 00:24:07 +0200 |
commit | 3f88ef88f347c2c2d7a77db9faab6652dd9c9042 (patch) | |
tree | 4ba250b81d760124ccfe053b6fe9af112296109f | |
parent | 333f40fa0f67b2b9562db498d8591e2d48bcd319 (diff) | |
download | z180-stamp-3f88ef88f347c2c2d7a77db9faab6652dd9c9042.zip |
cmd_attach.c: Correct workaround for GCC bug PR61443
-rw-r--r-- | avr/cmd_attach.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avr/cmd_attach.c b/avr/cmd_attach.c index d7bcafd..e9b5ccd 100644 --- a/avr/cmd_attach.c +++ b/avr/cmd_attach.c @@ -35,10 +35,10 @@ void printerror(int rc, uint8_t unit, char *fn) if (rc < 0 || (unsigned) rc >= ARRAY_SIZE(rc_messages)) rc = 1; -#if GCC_BUG_61443 * 0 - printf_P(PSTR("rc=%u FR_"), rc); - my_puts_P(rc_names[rc]); - my_puts_P(PSTR("\n")); +#if GCC_BUG_61443 + printf_P(PSTR("Attachment of '%s' to dsk%d failed: "), fn, unit); + my_puts_P(rc_messages[rc]); + my_puts_P(PSTR("!\n")); #else printf_P(PSTR("Attachment of '%s' to dsk%d failed: %S!\n"), fn, unit, rc_messages[rc]); |