# HG changeset patch # User Mychaela Falconia # Date 1614233400 0 # Node ID 8d55571c8118021ef4ea716dce33bc6bd564b979 # Parent c2889812788e27ce578c19811c53da761791aff0 fc-simtool bfsearch: forgot output redirection support diff -r c2889812788e -r 8d55571c8118 simtool/bfsearch.c --- a/simtool/bfsearch.c Thu Feb 25 06:03:13 2021 +0000 +++ b/simtool/bfsearch.c Thu Feb 25 06:10:00 2021 +0000 @@ -64,22 +64,22 @@ if (rc < 0) return(rc); if (sim_resp_data_len < 14) - printf("%04X: too-short response struct\n", bfs); + fprintf(outf, "%04X: too-short response struct\n", bfs); else { switch (sim_resp_data[6]) { case 0x01: - printf("%04X: MF\n", bfs); + fprintf(outf, "%04X: MF\n", bfs); break; case 0x02: - printf("%04X: DF\n", bfs); + fprintf(outf, "%04X: DF\n", bfs); break; case 0x04: - printf("%04X: EF (struct %02X)\n", bfs, + fprintf(outf, "%04X: EF (struct %02X)\n", bfs, sim_resp_data[13]); break; default: - printf("%04X: unknown file type %02X\n", bfs, - sim_resp_data[6]); + fprintf(outf, "%04X: unknown file type %02X\n", + bfs, sim_resp_data[6]); } } rc = elem_select_op(skip_ids[0]);