rcutorture: Print symbolic name for rcu_torture_writer_state
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 17 Nov 2015 21:35:28 +0000 (13:35 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 6 Dec 2015 01:58:22 +0000 (17:58 -0800)
commit18aff33e7314253b9437234bd6d69ddc4827de70
tree4848353b2ff65620350375cdd4205856f7b8fe63
parent91bf6a83e5a121c9313ae47156dd47df46ea2aac
rcutorture: Print symbolic name for rcu_torture_writer_state

Currently, rcu_torture_writer_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: More "const", as suggested by Josh Triplett. ]
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
kernel/rcu/rcutorture.c