FreeCalypso > hg > freecalypso-tools
diff rvinterf/lowlevel/format.c @ 942:fab04df64690
rvinterf/lowlevel: replace libg23 with libprint
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 24 May 2023 06:55:54 +0000 |
parents | 3d1abb9f05ef |
children |
line wrap: on
line diff
--- a/rvinterf/lowlevel/format.c Wed May 24 06:46:26 2023 +0000 +++ b/rvinterf/lowlevel/format.c Wed May 24 06:55:54 2023 +0000 @@ -14,7 +14,9 @@ extern u_char rxpkt[]; extern size_t rxpkt_len; +extern void output_line(); extern void output_cont(); +extern void output_cont_logpref(); void print_rv_trace() @@ -93,11 +95,8 @@ void print_g23_trace() { - char fmtbuf[MAX_PKT_FROM_TARGET*8]; /* size it generously */ - - /* messy logic factored out into libg23 */ - format_g23_packet(rxpkt, (int)rxpkt_len, fmtbuf); - output_line(fmtbuf); + format_gpf_packet(rxpkt, (unsigned) rxpkt_len, "", output_line, + output_cont_logpref); } void