Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sunrpc: Add missing kuids conversion for printing

m68k/allmodconfig:

net/sunrpc/auth_generic.c: In function ‘generic_key_timeout’:
net/sunrpc/auth_generic.c:241: warning: format ‘%d’ expects type ‘int’, but
argument 2 has type ‘kuid_t’

commit cdba321e291f0fbf5abda4d88340292b858e3d4d ("sunrpc: Convert kuids and
kgids to uids and gids for printing") forgot to convert one instance.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

authored by

Geert Uytterhoeven and committed by
Trond Myklebust
13429305 312cd958

+1 -1
+1 -1
net/sunrpc/auth_generic.c
··· 239 239 if (test_and_clear_bit(RPC_CRED_KEY_EXPIRE_SOON, 240 240 &acred->ac_flags)) 241 241 dprintk("RPC: UID %d Credential key reset\n", 242 - tcred->cr_uid); 242 + from_kuid(&init_user_ns, tcred->cr_uid)); 243 243 /* set up fasttrack for the normal case */ 244 244 set_bit(RPC_CRED_NOTIFY_TIMEOUT, &acred->ac_flags); 245 245 }