rcu/trace: Print negative GP numbers correctly
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Fri, 19 Jun 2020 01:36:39 +0000 (21:36 -0400)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:36:04 +0000 (18:36 -0700)
commitc30068f41a0e899f870e0158a2c69c68d738bf96
treebbf1d39f79c3cdf7de25e715b30f10e4c1b228c1
parent7487ea07dfa9bd782a13469cab18973ea0ab8c57
rcu/trace: Print negative GP numbers correctly

GP numbers start from -300 and gp_seq numbers start of -1200 (for a
shift of 2). These negative numbers are printed as unsigned long which
not only takes up more text space, but is rather confusing to the reader
as they have to constantly expend energy to truncate the number. Just
print the negative numbering directly.

Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/trace/events/rcu.h