]> git.baikalelectronics.ru Git - kernel.git/commit
Sunrpc: Supports hexadecimal number for sysctl files of sunrpc debug
authorKinglong Mee <kinglongmee@gmail.com>
Sat, 12 Sep 2015 01:37:18 +0000 (09:37 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 3 Nov 2015 20:56:49 +0000 (15:56 -0500)
commit2dfcafe0243193fe4c527ad9a12b8812247a948c
tree2c4fbe2ccfefef8f5daa60e88d98dd91301de1a7
parent5310a335f06fe05b65e56300059f1ecbca5e55c4
Sunrpc: Supports hexadecimal number for sysctl files of sunrpc debug

The sunrpc debug sysctl files only accept decimal number right now.
But all the XXXDBUG_XXX macros are defined as hexadecimal.
It is not easy to set or check an separate flag.

This patch let those files support accepting hexadecimal number,
(decimal number is also supported). Also, display it as hexadecimal.

v2,
Remove duplicate parsing of '0x...', just using simple_strtol(tmpbuf, &s, 0)
Fix a bug of isspace() checking after parsing

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/sysctl.c