From 930a2c53c639f53ae81f2be95d8a83a26c38e614 Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Tue, 2 Jul 2024 16:47:31 -0400 Subject: [PATCH] openocd: escape correctly in info messages --- tockloader/openocd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tockloader/openocd.py b/tockloader/openocd.py index 5d0c01a..9af4308 100644 --- a/tockloader/openocd.py +++ b/tockloader/openocd.py @@ -172,7 +172,7 @@ def _run_openocd_commands(self, commands, binary, write=True): [commands], binary, write ) - logging.debug('Running "{}".'.format(openocd_command.replace("$", "\$"))) + logging.debug('Running "{}".'.format(openocd_command.replace("$", "\\$"))) def print_output(subp): response = "" @@ -402,7 +402,7 @@ def run_terminal(self): exit=False, ) - logging.debug('Running "{}".'.format(openocd_command.replace("$", "\$"))) + logging.debug('Running "{}".'.format(openocd_command.replace("$", "\\$"))) cleanup = [] try: