]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
rcutorture: Print negatives for SRCU counter wraparound
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Mar 2014 00:51:08 +0000 (16:51 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:45:58 +0000 (09:45 -0700)
commit589a8f59509dc4c68f9c1e2522c5b0b556009221
treebfd54dddc6ffaf7500b73c7f46a192d0e87634bf
parent14d9d84c9e9b54e02ea69ab5cb6e2114f3639160
rcutorture: Print negatives for SRCU counter wraparound

The srcu_torture_stats() function prints SRCU's per-CPU c[] array with
an unsigned format, which means that the number one less than zero is
a very large number.  This commit therefore prints this array with a
signed format in order to improve readability of the rcutorture output.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/rcutorture.c