]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tools/workqueue/wq_dump.py: add NODE prefix to all node columns
authorBreno Leitao <leitao@debian.org>
Sat, 7 Mar 2026 17:47:21 +0000 (09:47 -0800)
committerTejun Heo <tj@kernel.org>
Sat, 7 Mar 2026 18:13:56 +0000 (08:13 -1000)
Previously only the first node column showed "NODE 0" while subsequent
columns showed just the bare node number, making it unclear what the
numbers refer to.

Add the "NODE" prefix to all node columns and remove the now-unnecessary
first/else branching.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/workqueue/wq_dump.py

index bddfeb9fc2a8ec6153487137b2acbe06c76b225f..fb3b87aa40cf8ac78f333705c473a4452af1d9bc 100644 (file)
@@ -228,13 +228,8 @@ if 'node_to_cpumask_map' in prog:
     print('')
 
     print(f'[{"workqueue":^{WQ_NAME_LEN-1}} {"min":>4} {"max":>4}', end='')
-    first = True
     for node in for_each_node():
-        if first:
-            print(f'  {"NODE " + str(node):>8}', end='')
-            first = False
-        else:
-            print(f' {node:>9}', end='')
+        print(f' {"NODE " + str(node):>9}', end='')
     print(f' {"dfl":>9} ]')
     print('')