FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/rftablewr.c @ 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 |
comparison
equal
deleted
inserted
replaced
145:04b5aaee06c0 | 146:1782fbfa4860 |
---|---|
63 u_char *p = bin; | 63 u_char *p = bin; |
64 | 64 |
65 fputs("rf_table agc-table\n\n", outf); | 65 fputs("rf_table agc-table\n\n", outf); |
66 for (i = 0; i < 4; i++) { | 66 for (i = 0; i < 4; i++) { |
67 for (j = 0; j < 5; j++) { | 67 for (j = 0; j < 5; j++) { |
68 fprintf(outf, " 0x%04X", get_u16(p)); | 68 if (j) |
69 putc(' ', outf); | |
70 fprintf(outf, "0x%04X", get_u16(p)); | |
69 p += 2; | 71 p += 2; |
70 } | 72 } |
71 putc('\n', outf); | 73 putc('\n', outf); |
72 } | 74 } |
73 } | 75 } |