Skip to content

Commit

Permalink
openocd: escape correctly in info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jul 2, 2024
1 parent 387bb84 commit 930a2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tockloader/openocd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 930a2c5

Please sign in to comment.