FreeCalypso > hg > freecalypso-tools
changeset 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 | ab771ce34fac |
children | bb7a03cc1e43 |
files | rvinterf/lowlevel/format_fc.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
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);