server: gdb: always print target information in multi-target setups
[fw/openocd] / src / server / gdb_server.c
index 626179c3c921a55ea3e77c8c3ac87cac54ed973f..fc0868b0a3d56d7ae1c27db014fb68c15d904186 100644 (file)
@@ -991,7 +991,9 @@ static int gdb_new_connection(struct connection *connection)
        }
 
        gdb_actual_connections++;
-       LOG_DEBUG("New GDB Connection: %d, Target %s, state: %s",
+       log_printf_lf(all_targets->next != NULL ? LOG_LVL_INFO : LOG_LVL_DEBUG,
+                       __FILE__, __LINE__, __func__,
+                       "New GDB Connection: %d, Target %s, state: %s",
                        gdb_actual_connections,
                        target_name(target),
                        target_state_name(target));