Skip to content

Commit

Permalink
tools/vm/slabinfo: fix an unintentional printf
Browse files Browse the repository at this point in the history
The curly braces are missing here so we print stuff unintentionally.

Fixes: 9da4714 ('slub: slabinfo update for cmpxchg handling')
Link: http://lkml.kernel.org/r/20160715211243.GE19522@mwanda
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Christoph Lameter <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Colin Ian King <[email protected]>
Cc: Laura Abbott <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Dan Carpenter authored and torvalds committed Jul 23, 2016
1 parent b301aac commit 2d6a4d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/vm/slabinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,11 @@ static void slab_stats(struct slabinfo *s)
s->alloc_node_mismatch, (s->alloc_node_mismatch * 100) / total);
}

if (s->cmpxchg_double_fail || s->cmpxchg_double_cpu_fail)
if (s->cmpxchg_double_fail || s->cmpxchg_double_cpu_fail) {
printf("\nCmpxchg_double Looping\n------------------------\n");
printf("Locked Cmpxchg Double redos %lu\nUnlocked Cmpxchg Double redos %lu\n",
s->cmpxchg_double_fail, s->cmpxchg_double_cpu_fail);
}
}

static void report(struct slabinfo *s)
Expand Down

0 comments on commit 2d6a4d6

Please sign in to comment.