changeset 793:02490e26f53d

fc-simint: cosmetic enhancements
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 19 Mar 2021 04:55:22 +0000
parents 44e034f21916
children 1a084d7512dc
files loadtools/simmain.c loadtools/simup.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/simmain.c	Fri Mar 19 04:47:32 2021 +0000
+++ b/loadtools/simmain.c	Fri Mar 19 04:55:22 2021 +0000
@@ -154,8 +154,10 @@
 	perform_compal_stage();
 	perform_romload();
 	/* simagent target program should be running now */
+	putchar('\n');
 	if (tpinterf_pass_output(1) < 0)
 		exit(1);
+	putchar('\n');
 	if (session_baudrate && session_baudrate != current_baud_rate) {
 		c = loadagent_switch_baud(session_baudrate);
 		if (c)
--- a/loadtools/simup.c	Fri Mar 19 04:47:32 2021 +0000
+++ b/loadtools/simup.c	Fri Mar 19 04:55:22 2021 +0000
@@ -48,11 +48,10 @@
 {
 	char *targv[3];
 
+	printf("Bringing up SIM interface at %s V\n",
+		sim_voltage_mode_1v8 ? "1.8" : "3.0");
 	targv[0] = "sim-up";
-	if (sim_voltage_mode_1v8)
-		targv[1] = "1.8";
-	else
-		targv[1] = "3";
+	targv[1] = sim_voltage_mode_1v8 ? "1.8" : "3";
 	targv[2] = 0;
 	tpinterf_make_cmd(targv);
 	if (tpinterf_send_cmd() < 0)