From a66f7efee137428bc75c7ae68a3ea8514472dcc8 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Mon, 16 Dec 2019 05:28:01 -0800 Subject: [PATCH] SERIAL: Clean up display of open serial ports As mentioned in #782 --- sim_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim_serial.c b/sim_serial.c index 86ae870e..74bdfb32 100644 --- a/sim_serial.c +++ b/sim_serial.c @@ -362,7 +362,7 @@ if (serial_open_device_count) { for (i=0; imp->dptr->name, (int)(serial_open_devices[i].line->mp->ldsc-serial_open_devices[i].line), - serial_open_devices[i].line->destination, d ? " {" : "", d ? d : "", d ? ")" : "", serial_open_devices[i].line->serconfig); + serial_open_devices[i].line->destination, ((d != NULL) && (*d != '\0')) ? " (" : "", ((d != NULL) && (*d != '\0')) ? d : "", ((d != NULL) && (*d != '\0')) ? ")" : "", serial_open_devices[i].line->serconfig); } } return SCPE_OK;