changeset 146:8d55571c8118

fc-simtool bfsearch: forgot output redirection support
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 25 Feb 2021 06:10:00 +0000
parents c2889812788e
children dcbabc398c6a
files simtool/bfsearch.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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]);