From 1bab7cbc7dc08864ae1d4fbeac70dd847c290222 Mon Sep 17 00:00:00 2001 From: Luo Yifan Date: Sat, 8 Oct 2022 16:16:51 +0800 Subject: [PATCH] scripts: Fix a clerical error in gdb_macros.py The add operation is meaningless here. New ns should be added to the returned string, so replace + with +=. Signed-off-by: Luo Yifan Change-Id: I7f0eaaec48d544e21892320dfc1451ebd2e7174e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14899 Tested-by: SPDK CI Jenkins Reviewed-by: Konrad Sztyber Reviewed-by: Tomasz Zawadzki --- scripts/gdb_macros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb_macros.py b/scripts/gdb_macros.py index 74234de7b..d62b754cc 100644 --- a/scripts/gdb_macros.py +++ b/scripts/gdb_macros.py @@ -162,7 +162,7 @@ class NvmfSubsystem(SpdkObject): s += '\nnqn %s' % self.get_name() s += '\nID %d' % self.get_id() for ns in self.get_ns_list(): - s + '\t%s' % str(ns) + s += '\t%s' % str(ns) return s