mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
nfsd: shorten extack string returned with dodgy listener
The kernel test robot reports: >> fs/nfsd/nfsctl.c:2253:4: warning: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 94 [-Wformat-truncation] Shorten the extack string in this case so that it will fit in 80 chars. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260904-nfsd-nl-hang-v1-1-8c8035b6294d@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
5d28b2c920
commit
8d7859d165
|
|
@ -2251,7 +2251,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
|
|||
bad_xprt);
|
||||
else if (skipped_rpcb)
|
||||
NL_SET_ERR_MSG_FMT(info->extack,
|
||||
"cannot create %s listener; rpcbind did not answer earlier, so some listeners are not registered",
|
||||
"cannot create %s listener; rpcbind did not answer earlier",
|
||||
bad_xprt);
|
||||
else
|
||||
NL_SET_ERR_MSG_FMT(info->extack,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user