Fix xymodem error print outs

This commit is contained in:
Martin Lund 2024-04-10 20:04:28 +02:00
parent d8fb1ab0ca
commit 78f96bd32c
2 changed files with 26 additions and 12 deletions

View file

@ -80,6 +80,19 @@ extern char ansi_format[];
} \
}
#define tio_error_print(format, args...) \
{ \
if (!option.mute) \
{ \
if (print_tainted) \
putchar('\n'); \
if (option.color < 0) \
fprintf (stdout, "\r[%s] Error: " format "\r\n", timestamp_current_time(), ## args); \
else \
ansi_printf("[%s] Error: " format, timestamp_current_time(), ## args); \
} \
}
#define tio_printf(format, args...) \
{ \
if (!option.mute) \