aboutsummaryrefslogtreecommitdiffstats
path: root/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'devices.c')
-rw-r--r--devices.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/devices.c b/devices.c
index d34468a..872afdd 100644
--- a/devices.c
+++ b/devices.c
@@ -422,7 +422,11 @@ void devices_parse_info_chardev(struct qemu_window *win, char *str)
while (str[pos+len] == '\r' || str[pos+len] == '\n')
len++;
- /* filter out */
+ if (debug)
+ fprintf(stderr, "%s: %s -- \"%s\"\n",
+ __FUNCTION__, name, file);
+
+ /* filter out stuff */
if (strcmp(name, "monitor") == 0)
continue;
if (strcmp(name, "gdb") == 0)
@@ -438,10 +442,6 @@ void devices_parse_info_chardev(struct qemu_window *win, char *str)
win->sercon = strdup(file);
}
- if (1 || debug)
- fprintf(stderr, "%s: %s -- \"%s\"\n",
- __FUNCTION__, name, file);
-
snprintf(label, sizeof(label), "%s", name);
snprintf(action, sizeof(action), "%s_%s", name, file);
add_entry(win, win->chardev.ag, menu_cb_open_term, &i_xml, &i_pos,