[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <51CBEE2D.1080209@redhat.com>
Date: Thu, 27 Jun 2013 09:47:57 +0200
From: Daniel Borkmann <dborkman@...hat.com>
To: Cong Wang <xiyou.wangcong@...il.com>
CC: netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] lib: vsprintf: add IPv4/v6 generic %pig/%pIg
format specifier
On 06/27/2013 03:37 AM, Cong Wang wrote:
> On Wed, 26 Jun 2013 at 17:01 GMT, Daniel Borkmann <dborkman@...hat.com> wrote:
>> In order to avoid making code that deals with printing both, IPv4 and
>> IPv6 addresses, unnecessary complicated as for example ...
>>
>> if (sa.sa_family == AF_INET6)
>> printk("... %pI6 ...", sin6_addr);
>> else
>> printk("... %pI4 ...", sin_addr.s_addr);
>>
>
> "%pI6c" is more friendly than "%pI6".
Sure, but that was just an example as stated above.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists