diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-10-29 15:50:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-29 15:50:24 -0400 |
commit | 4b7a4274ca63dadd9c4f17fc953f3a5d19855c4c (patch) | |
tree | 946d6cef596756a95afe0cea51f5c3c9be4c3353 /fs/cifs/cifs_spnego.c | |
parent | 4aa996066ffc0dba24036c961ee38dfdfbfc061c (diff) |
net: replace %#p6 format specifier with %pi6
gcc warns when using the # modifier with the %p format specifier,
so we can't use this to omit the colons when needed, introduces
%pi6 instead.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/cifs/cifs_spnego.c')
-rw-r--r-- | fs/cifs/cifs_spnego.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifs_spnego.c b/fs/cifs/cifs_spnego.c index ae4be823e493..0e186cd20ad9 100644 --- a/fs/cifs/cifs_spnego.c +++ b/fs/cifs/cifs_spnego.c | |||
@@ -124,7 +124,7 @@ cifs_get_spnego_key(struct cifsSesInfo *sesInfo) | |||
124 | sprintf(dp, "ip4=" NIPQUAD_FMT, | 124 | sprintf(dp, "ip4=" NIPQUAD_FMT, |
125 | NIPQUAD(server->addr.sockAddr.sin_addr)); | 125 | NIPQUAD(server->addr.sockAddr.sin_addr)); |
126 | else if (server->addr.sockAddr.sin_family == AF_INET6) | 126 | else if (server->addr.sockAddr.sin_family == AF_INET6) |
127 | sprintf(dp, "ip6=%#p6", &server->addr.sockAddr6.sin6_addr); | 127 | sprintf(dp, "ip6=%pi6", &server->addr.sockAddr6.sin6_addr); |
128 | else | 128 | else |
129 | goto out; | 129 | goto out; |
130 | 130 | ||