]> cloudbase.mooo.com Git - z180-stamp.git/commitdiff
cmd_attach.c: Correct workaround for GCC bug PR61443
authorLeo C <erbl259-lmu@yahoo.de>
Wed, 24 Aug 2016 22:24:07 +0000 (00:24 +0200)
committerLeo C <erbl259-lmu@yahoo.de>
Wed, 24 Aug 2016 22:24:07 +0000 (00:24 +0200)
avr/cmd_attach.c

index d7bcafd60bdf7e602be46c40a4109b0b984f020a..e9b5ccdc0968186cd8e98cfb42f13b1b858e3cf4 100644 (file)
@@ -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]);