]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SUNRPC]: print unsigned integers in stats
authorMax Kellermann <max@duempel.org>
Wed, 7 Sep 2005 03:04:59 +0000 (20:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2005 03:04:59 +0000 (20:04 -0700)
commit832079d29a781ddf89467662ab4b540f0c1e668a
tree24e17f463fb6c658c84772a6242e07ad5c593396
parentc6bb15a0c485fbdd3d161da54fd29f4f15e1b070
[SUNRPC]: print unsigned integers in stats

From: Max Kellermann <max@duempel.org>

The sunrpc stats are collected in unsigned integers, but they are printed
with '%d'.  That can result in negative numbers in /proc/net/rpc when the
highest bit of a counter is set.  The following patch changes '%d' to '%u'
where appropriate.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sunrpc/stats.c