FreeCalypso > hg > freecalypso-tools
diff rvinterf/lowlevel/format_fc.c @ 930:a38430e03e73
rvinterf/lowlevel/format_fc.c: get rid of static fmtbuf
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 23 May 2023 05:59:17 +0000 |
parents | 65953c172f24 |
children | 8fc3b72eb2c6 |
line wrap: on
line diff
--- a/rvinterf/lowlevel/format_fc.c Tue May 23 05:56:08 2023 +0000 +++ b/rvinterf/lowlevel/format_fc.c Tue May 23 05:59:17 2023 +0000 @@ -15,11 +15,11 @@ extern void output_cont(); -static char fmtbuf[MAX_PKT_FROM_TARGET*8]; /* size it generously */ - void print_ati_output() { + char fmtbuf[MAX_PKT_FROM_TARGET*4+2]; + strcpy(fmtbuf, "ATI: "); safe_print_trace(rxpkt + 1, (int)rxpkt_len - 1, fmtbuf + 5); output_line(fmtbuf); @@ -28,6 +28,8 @@ void print_fc_lld_msg() { + char fmtbuf[MAX_PKT_FROM_TARGET*4+2]; + strcpy(fmtbuf, "LLD: "); safe_print_trace(rxpkt + 1, (int)rxpkt_len - 1, fmtbuf + 5); output_line(fmtbuf); @@ -43,6 +45,8 @@ void report_extui_packet() { + char fmtbuf[80]; + sprintf(fmtbuf, "LCD OUT: row %u col %u-%u", rxpkt[1], rxpkt[2], rxpkt[2] + (rxpkt_len - 3) / 2 - 1); output_line(fmtbuf);