]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sunrpc: print unsigned integers in stats
authorMax Kellermann <max@duempel.org>
Tue, 6 Sep 2005 22:18:03 +0000 (15:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:39 +0000 (16:57 -0700)
commit7296d9a87508bc80c97675053f88fc3c8b14388d
treea2d33495131b874e1cc4895ba21723e863ca63b4
parent554f50beda3512f1b46b9ed364088e33d7c9cdf2
[PATCH] sunrpc: print unsigned integers in stats

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.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/stats.c