From: frank.blaschka@de.ibm.com
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
Joe Perches <joe@perches.com>
Subject: [patch 2/4] [PATCH] qeth: Use %pI6
Date: Wed, 08 Sep 2010 09:14:40 +0200 [thread overview]
Message-ID: <20100908071601.252074972@de.ibm.com> (raw)
In-Reply-To: 20100908071438.085729717@de.ibm.com
[-- Attachment #1: 601-qeth-pi6.diff --]
[-- Type: text/plain, Size: 1076 bytes --]
From: Joe Perches <joe@perches.com>
Format an ipv6 address using vsprintf extensions.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
---
drivers/s390/net/qeth_l3_main.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff -urpN linux-2.6/drivers/s390/net/qeth_l3_main.c linux-2.6-patched/drivers/s390/net/qeth_l3_main.c
--- linux-2.6/drivers/s390/net/qeth_l3_main.c 2010-09-07 09:57:18.000000000 +0200
+++ linux-2.6-patched/drivers/s390/net/qeth_l3_main.c 2010-09-07 09:57:34.000000000 +0200
@@ -103,12 +103,7 @@ int qeth_l3_string_to_ipaddr4(const char
void qeth_l3_ipaddr6_to_string(const __u8 *addr, char *buf)
{
- sprintf(buf, "%02x%02x:%02x%02x:%02x%02x:%02x%02x"
- ":%02x%02x:%02x%02x:%02x%02x:%02x%02x",
- addr[0], addr[1], addr[2], addr[3],
- addr[4], addr[5], addr[6], addr[7],
- addr[8], addr[9], addr[10], addr[11],
- addr[12], addr[13], addr[14], addr[15]);
+ sprintf(buf, "%pI6", addr);
}
int qeth_l3_string_to_ipaddr6(const char *buf, __u8 *addr)
next prev parent reply other threads:[~2010-09-08 7:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 7:14 [patch 0/4] s390: network patches for net-next frank.blaschka
2010-09-08 7:14 ` [patch 1/4] [PATCH] qdio: extend API to allow polling frank.blaschka
2010-09-08 7:14 ` frank.blaschka [this message]
2010-09-08 7:14 ` [patch 3/4] [PATCH][S390] Kconfig: have CCWGROUP depend on CLAW frank.blaschka
2010-09-08 7:14 ` [patch 4/4] [PATCH] qeth: NAPI support for l2 and l3 discipline frank.blaschka
2010-09-08 21:31 ` [patch 0/4] s390: network patches for net-next David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100908071601.252074972@de.ibm.com \
--to=frank.blaschka@de.ibm.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).