]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cifs: update for new IP4/6 address printing
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Dec 2008 02:49:23 +0000 (13:49 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Dec 2008 00:29:58 +0000 (16:29 -0800)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/cifsfs.c

index 974c8f0e615eb1fa9d0dfffba6fb0feb7dd18fae..0005a194a75cd44e12a4226896c2209da42fb05b 100644 (file)
@@ -361,12 +361,12 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
                                        switch (server->addr.sockAddr6.
                                                sin6_family) {
                                        case AF_INET6:
-                                               seq_printf(s, NIP6_FMT,
-                                                          NIP6(server->addr.sockAddr6.sin6_addr));
+                                               seq_printf(s, "%pI6",
+                                                          &server->addr.sockAddr6.sin6_addr);
                                                break;
                                        case AF_INET:
-                                               seq_printf(s, NIPQUAD_FMT,
-                                                          NIPQUAD(server->addr.sockAddr.sin_addr.s_addr));
+                                               seq_printf(s, "%pI4",
+                                                          &server->addr.sockAddr.sin_addr.s_addr);
                                                break;
                                        }
                                }