Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760336Ab0HLQgG (ORCPT ); Thu, 12 Aug 2010 12:36:06 -0400 Received: from mtagate4.de.ibm.com ([195.212.17.164]:54425 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760051Ab0HLQgD (ORCPT ); Thu, 12 Aug 2010 12:36:03 -0400 Subject: Re: Fw: [PATCH net-next] drivers/s390/net/qeth_l3_main.c: Use %pI6 From: Ursula Braun To: Ursula Braun1 Cc: blaschka@linux.vnet.ibm.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Thu, 12 Aug 2010 18:36:00 +0200 Message-ID: <1281630960.12375.8.camel@braunu-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1704 Lines: 51 ACK Thanks Joe - we make sure your patch is submitted to Dave Miller within our next submission of qeth patches. Ursula > From: Joe Perches > To: Frank Blaschka > Subject: [PATCH net-next] drivers/s390/net/qeth_l3_main.c: Use %pI6 > Format an ipv6 address using vsprintf extensions. > > Signed-off-by: Joe Perches > --- > drivers/s390/net/qeth_l3_main.c | 7 +------ > 1 files changed, 1 insertions(+), 6 deletions(-) > > diff --git a/drivers/s390/net/qeth_l3_main.c > b/drivers/s390/net/qeth_l3_main.c > index e22ae24..561bdc8 100644 > --- a/drivers/s390/net/qeth_l3_main.c > +++ b/drivers/s390/net/qeth_l3_main.c > @@ -103,12 +103,7 @@ int qeth_l3_string_to_ipaddr4(const char *buf, > __u8 *addr) > > 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) > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/