transport: don't warn when a transport is selected twice

Selecting the same transport is not an issue.
Move the warning message to debug level.

Change-Id: I52a7fffeb08a5aa6ee8a72af6b740f7e0fbe5b27
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/9428
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
This commit is contained in:
Antonio Borneo
2026-02-01 18:53:18 +01:00
parent 22bad00b9b
commit 9e1db0e8c7

View File

@@ -352,7 +352,7 @@ COMMAND_HANDLER(handle_transport_select)
transport_single_is_autoselected = false;
return ERROR_OK;
}
LOG_WARNING("Transport \"%s\" was already selected", CMD_ARGV[0]);
LOG_DEBUG("Transport \"%s\" was already selected", CMD_ARGV[0]);
return ERROR_OK;
}
command_print(CMD, "Can't change session's transport after the initial selection was made");