From ee10c26d78decc7d03c89aafaf4787695559c6e5 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Fri, 9 Oct 2020 17:51:10 +0300 Subject: [PATCH] Tools: Fix for printing extra blank after value The just display value option "-v or --value" for sof-tplgreader.py outputs after the actual value a space character. It can cause unexpected issues when utilizing the values in test scripts. The added strip fixes the issue. Fixes #408 Signed-off-by: Marc Herbert Signed-off-by: Seppo Ingalsuo --- tools/sof-tplgreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sof-tplgreader.py b/tools/sof-tplgreader.py index cebb701c..c84d170e 100755 --- a/tools/sof-tplgreader.py +++ b/tools/sof-tplgreader.py @@ -250,7 +250,7 @@ def func_dump_pipeline(pipeline, noKey=False): output += str(value) + " " else: output += key + "=" + str(value) + ";" - return output + return output.strip() def func_export_pipeline(pipeline_lst): length = len(pipeline_lst)