Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/workqueue/wq_dump.py: add NODE prefix to all node columns

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>

authored by

Breno Leitao and committed by
Tejun Heo
25e1a46c 15e1fab9

+1 -6
+1 -6
tools/workqueue/wq_dump.py
··· 228 228 print('') 229 229 230 230 print(f'[{"workqueue":^{WQ_NAME_LEN-1}} {"min":>4} {"max":>4}', end='') 231 - first = True 232 231 for node in for_each_node(): 233 - if first: 234 - print(f' {"NODE " + str(node):>8}', end='') 235 - first = False 236 - else: 237 - print(f' {node:>9}', end='') 232 + print(f' {"NODE " + str(node):>9}', end='') 238 233 print(f' {"dfl":>9} ]') 239 234 print('') 240 235