changeset 146:1782fbfa4860

rftablewr.c: agc-table write: eliminate leading space in the output
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 27 Feb 2017 05:25:36 +0000
parents 04b5aaee06c0
children d2a79b68789b
files rvinterf/tmsh/rftablewr.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/tmsh/rftablewr.c	Mon Feb 27 05:22:25 2017 +0000
+++ b/rvinterf/tmsh/rftablewr.c	Mon Feb 27 05:25:36 2017 +0000
@@ -65,7 +65,9 @@
 	fputs("rf_table agc-table\n\n", outf);
 	for (i = 0; i < 4; i++) {
 		for (j = 0; j < 5; j++) {
-			fprintf(outf, " 0x%04X", get_u16(p));
+			if (j)
+				putc(' ', outf);
+			fprintf(outf, "0x%04X", get_u16(p));
 			p += 2;
 		}
 		putc('\n', outf);