rcutorture: Print symbolic name for ->gp_state
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 17 Nov 2015 22:39:26 +0000 (14:39 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 6 Dec 2015 01:58:26 +0000 (17:58 -0800)
commit6b50e119c440b7532ed749b635a58b3839f62992
tree17dbb74f3ff6e9c4a595992f8262f757e65369d1
parent18aff33e7314253b9437234bd6d69ddc4827de70
rcutorture: Print symbolic name for ->gp_state

Currently, ->gp_state is printed as an integer, which slows debugging.
This commit therefore prints a symbolic name in addition to the integer.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
[ paulmck: Updated to fix relational operator called out by Dan Carpenter. ]
[ paulmck: More "const", as suggested by Josh Triplett. ]
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/tree.c
kernel/rcu/tree.h