diff options
author | Peter Zijlstra <[email protected]> | 2012-05-14 14:34:00 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-05-14 15:05:28 +0200 |
commit | 13e099d2f77e1da3e4046860c48d956588633613 (patch) | |
tree | f538267ca46bd3647000140f6888045c5114bc0f /lib/mpi/mpi-add.c | |
parent | e44bc5c5d00ee9b56dd87db47ed827d52948b9fa (diff) |
sched/debug: Fix printing large integers on 32-bit platforms
Some numbers like nr_running and nr_uninterruptible are fundamentally
unsigned since its impossible to have a negative amount of tasks, yet
we still print them as signed to easily recognise the underflow
condition.
rq->nr_uninterruptible has 'special' accounting and can in fact very
easily become negative on a per-cpu basis.
It was noted that since the P() macro assumes things are long long and
the promotion of unsigned 'int/long' to long long on 32bit doesn't
sign extend we print silly large numbers instead of the easier to read
signed numbers.
Therefore extend the P() macro to not require the sign extention.
Reported-by: Diwakar Tundlam <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions