# HG changeset patch # User Mychaela Falconia # Date 1684821557 0 # Node ID a38430e03e738cc63667485cec93753cb663bb66 # Parent ab771ce34fac8de223550bd8c41c517ef9da227a rvinterf/lowlevel/format_fc.c: get rid of static fmtbuf diff -r ab771ce34fac -r a38430e03e73 rvinterf/lowlevel/format_fc.c --- 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);