diff options
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 71b7661e2260..cd54fee3f05c 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -2058,8 +2058,8 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, | |||
2058 | rc = -ENOMEM; | 2058 | rc = -ENOMEM; |
2059 | else { | 2059 | else { |
2060 | pSesInfo->server = srvTcp; | 2060 | pSesInfo->server = srvTcp; |
2061 | sprintf(pSesInfo->serverName, "%u.%u.%u.%u", | 2061 | sprintf(pSesInfo->serverName, "%pI4", |
2062 | NIPQUAD(sin_server.sin_addr.s_addr)); | 2062 | &sin_server.sin_addr.s_addr); |
2063 | } | 2063 | } |
2064 | 2064 | ||
2065 | if (!rc) { | 2065 | if (!rc) { |