diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfsroot.c | 6 | ||||
-rw-r--r-- | fs/nfs/super.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c index 8478fc25daee..d74d16ce0d49 100644 --- a/fs/nfs/nfsroot.c +++ b/fs/nfs/nfsroot.c | |||
@@ -329,7 +329,7 @@ static int __init root_nfs_addr(void) | |||
329 | } | 329 | } |
330 | 330 | ||
331 | snprintf(nfs_data.hostname, sizeof(nfs_data.hostname), | 331 | snprintf(nfs_data.hostname, sizeof(nfs_data.hostname), |
332 | "%u.%u.%u.%u", NIPQUAD(servaddr)); | 332 | "%pI4", &servaddr); |
333 | return 0; | 333 | return 0; |
334 | } | 334 | } |
335 | 335 | ||
@@ -421,8 +421,8 @@ static int __init root_nfs_getport(int program, int version, int proto) | |||
421 | { | 421 | { |
422 | struct sockaddr_in sin; | 422 | struct sockaddr_in sin; |
423 | 423 | ||
424 | printk(KERN_NOTICE "Looking up port of RPC %d/%d on %u.%u.%u.%u\n", | 424 | printk(KERN_NOTICE "Looking up port of RPC %d/%d on %pI4\n", |
425 | program, version, NIPQUAD(servaddr)); | 425 | program, version, &servaddr); |
426 | set_sockaddr(&sin, servaddr, 0); | 426 | set_sockaddr(&sin, servaddr, 0); |
427 | return rpcb_getport_sync(&sin, program, version, proto); | 427 | return rpcb_getport_sync(&sin, program, version, proto); |
428 | } | 428 | } |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index eb391d8d70ba..bb0313ac9e1f 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -462,8 +462,7 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss, | |||
462 | switch (sap->sa_family) { | 462 | switch (sap->sa_family) { |
463 | case AF_INET: { | 463 | case AF_INET: { |
464 | struct sockaddr_in *sin = (struct sockaddr_in *)sap; | 464 | struct sockaddr_in *sin = (struct sockaddr_in *)sap; |
465 | seq_printf(m, ",mountaddr=" NIPQUAD_FMT, | 465 | seq_printf(m, ",mountaddr=%pI4", &sin->sin_addr.s_addr); |
466 | NIPQUAD(sin->sin_addr.s_addr)); | ||
467 | break; | 466 | break; |
468 | } | 467 | } |
469 | case AF_INET6: { | 468 | case AF_INET6: { |