From 1aeb27c4c92ebb6897d3fef1d12be9fb2bff26f5 Mon Sep 17 00:00:00 2001 From: Elena Sakhnovitch Date: Wed, 24 Nov 2021 20:10:38 -0500 Subject: [PATCH] [rocm_smi.py] remove \r symbol at print Remove carriage return at the end of the line in printLog function. On linux end of line is encoded with \n, not \n\r. Change-Id: If3835d773033b53a7f25b4a0284df359a6f9555d --- python_smi_tools/rocm_smi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_smi_tools/rocm_smi.py b/python_smi_tools/rocm_smi.py index d77b983920..05344cefe7 100755 --- a/python_smi_tools/rocm_smi.py +++ b/python_smi_tools/rocm_smi.py @@ -483,7 +483,7 @@ def printLog(device, metricName, value): logstr = logstr[13:] logging.debug(logstr) # Force thread safe printing - print(logstr + '\n\r', end='') + print(logstr + '\n', end='') def printListLog(metricName, valuesList):