aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-12-03 15:58:56 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-12-03 15:58:56 -0500
commitd250e190fb9b06f4c595eade88b3d0b705fb330a (patch)
tree963505275d87d596b674b061403cf6fa18b01f25 /fs/nfs
parentdd1fd90fe65e2e642f0e58e2ff4849f317a6c43d (diff)
downloadkernel_samsung_smdk4412-d250e190fb9b06f4c595eade88b3d0b705fb330a.zip
kernel_samsung_smdk4412-d250e190fb9b06f4c595eade88b3d0b705fb330a.tar.gz
kernel_samsung_smdk4412-d250e190fb9b06f4c595eade88b3d0b705fb330a.tar.bz2
NFS: Display compressed (shorthand) IPv6 in /proc/mounts
Recent changes to snprintf() introduced the %pI6c formatter, which can display an IPv6 address with standard shorthanding. Use this new formatter when displaying IPv6 server addresses in /proc/mounts. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index bfad746..8370327 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -546,7 +546,7 @@ static void nfs_show_mountd_options(struct seq_file *m, struct nfs_server *nfss,
}
case AF_INET6: {
struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;
- seq_printf(m, ",mountaddr=%pI6", &sin6->sin6_addr);
+ seq_printf(m, ",mountaddr=%pI6c", &sin6->sin6_addr);
break;
}
default: