]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
cifs: fix ipv6 formating in cifs_ses_add_channel
authorAurelien Aptel <aaptel@suse.com>
Fri, 28 May 2021 14:32:48 +0000 (16:32 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:16 +0000 (21:28 -0500)
Use %pI6 for IPv6 addresses

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/sess.c

index a92a1fb7cb526a25227590514b039fa5527bd4ee..cd19aa11f27e317c4a539bdb21c71467aa1e2e7a 100644 (file)
@@ -195,7 +195,7 @@ cifs_ses_add_channel(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses,
                         ses, iface->speed, iface->rdma_capable ? "yes" : "no",
                         &ipv4->sin_addr);
        else
-               cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI4)\n",
+               cifs_dbg(FYI, "adding channel to ses %p (speed:%zu bps rdma:%s ip:%pI6)\n",
                         ses, iface->speed, iface->rdma_capable ? "yes" : "no",
                         &ipv6->sin6_addr);