Commit 25e1a46c authored by Breno Leitao's avatar Breno Leitao Committed by Tejun Heo
Browse files

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: default avatarBreno Leitao <leitao@debian.org>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 15e1fab9
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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('')