aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfsroot.c6
-rw-r--r--fs/nfs/super.c6
2 files changed, 5 insertions, 7 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c
index f015e0d62add..d9ef602fbc5a 100644
--- a/fs/nfs/nfsroot.c
+++ b/fs/nfs/nfsroot.c
@@ -331,7 +331,7 @@ static int __init root_nfs_addr(void)
331 } 331 }
332 332
333 snprintf(nfs_data.hostname, sizeof(nfs_data.hostname), 333 snprintf(nfs_data.hostname, sizeof(nfs_data.hostname),
334 "%u.%u.%u.%u", NIPQUAD(servaddr)); 334 "%pI4", &servaddr);
335 return 0; 335 return 0;
336} 336}
337 337
@@ -423,8 +423,8 @@ static int __init root_nfs_getport(int program, int version, int proto)
423{ 423{
424 struct sockaddr_in sin; 424 struct sockaddr_in sin;
425 425
426 printk(KERN_NOTICE "Looking up port of RPC %d/%d on %u.%u.%u.%u\n", 426 printk(KERN_NOTICE "Looking up port of RPC %d/%d on %pI4\n",
427 program, version, NIPQUAD(servaddr)); 427 program, version, &servaddr);
428 set_sockaddr(&sin, servaddr, 0); 428 set_sockaddr(&sin, servaddr, 0);
429 return rpcb_getport_sync(&sin, program, version, proto); 429 return rpcb_getport_sync(&sin, program, version, proto);
430} 430}
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index bd4c3dd550df..d6686f4786dc 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -465,14 +465,12 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
465 switch (sap->sa_family) { 465 switch (sap->sa_family) {
466 case AF_INET: { 466 case AF_INET: {
467 struct sockaddr_in *sin = (struct sockaddr_in *)sap; 467 struct sockaddr_in *sin = (struct sockaddr_in *)sap;
468 seq_printf(m, ",mountaddr=" NIPQUAD_FMT, 468 seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr);
469 NIPQUAD(sin->sin_addr.s_addr));
470 break; 469 break;
471 } 470 }
472 case AF_INET6: { 471 case AF_INET6: {
473 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; 472 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
474 seq_printf(m, ",mountaddr=" NIP6_FMT, 473 seq_printf(m, ",mountaddr=%pI6", &sin6->sin6_addr);
475 NIP6(sin6->sin6_addr));
476 break; 474 break;
477 } 475 }
478 default: 476 default: