sunrpc: avoid -Wformat-security warning

Using a non-constant string as an sprintf-style is potentially dangerous:

net/sunrpc/svc.c: In function 'param_get_pool_mode':
net/sunrpc/svc.c:164:32: error: format not a string literal and no format arguments [-Werror=format-security]

Use a literal "%s" format instead.

Fixes: 5f71f3c32553 ("sunrpc: refactor pool_mode setting code")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by Arnd Bergmann and committed by Chuck Lever 78528097 769d2002

+1 -1
+1 -1
net/sunrpc/svc.c
··· 161 161 str[len] = '\n'; 162 162 str[len + 1] = '\0'; 163 163 164 - return sysfs_emit(buf, str); 164 + return sysfs_emit(buf, "%s", str); 165 165 } 166 166 167 167 module_param_call(pool_mode, param_set_pool_mode, param_get_pool_mode,