diff mbox series

cifs: fix ipv6 formating in cifs_ses_add_channel

Message ID 20210528143248.7521-1-aaptel@suse.com (mailing list archive)
State New, archived
Headers show
Series cifs: fix ipv6 formating in cifs_ses_add_channel | expand

Commit Message

Aurélien Aptel May 28, 2021, 2:32 p.m. UTC
From: Aurelien Aptel <aaptel@suse.com>

Use %pI6 for IPv6 addresses

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
---
 fs/cifs/sess.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve French May 28, 2021, 2:34 p.m. UTC | #1
good catch

On Fri, May 28, 2021 at 9:32 AM Aurélien Aptel <aaptel@suse.com> wrote:
>
> From: Aurelien Aptel <aaptel@suse.com>
>
> Use %pI6 for IPv6 addresses
>
> Signed-off-by: Aurelien Aptel <aaptel@suse.com>
> ---
>  fs/cifs/sess.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
> index a92a1fb7cb52..cd19aa11f27e 100644
> --- a/fs/cifs/sess.c
> +++ b/fs/cifs/sess.c
> @@ -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);
>
> --
> 2.31.1
>
Steve French May 31, 2021, 4:30 a.m. UTC | #2
merged into cifs-2.6.git for-next

On Fri, May 28, 2021 at 9:32 AM Aurélien Aptel <aaptel@suse.com> wrote:
>
> From: Aurelien Aptel <aaptel@suse.com>
>
> Use %pI6 for IPv6 addresses
>
> Signed-off-by: Aurelien Aptel <aaptel@suse.com>
> ---
>  fs/cifs/sess.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
> index a92a1fb7cb52..cd19aa11f27e 100644
> --- a/fs/cifs/sess.c
> +++ b/fs/cifs/sess.c
> @@ -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);
>
> --
> 2.31.1
>
diff mbox series

Patch

diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c
index a92a1fb7cb52..cd19aa11f27e 100644
--- a/fs/cifs/sess.c
+++ b/fs/cifs/sess.c
@@ -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);