Subject: Re: [PATCH net-next 1/2] lib: vsprintf: add IPv4/v6 generic %pig/%pIg format specifier

From: Daniel Borkmann <[email-masked]>
Date: Thu, 27 Jun 2013 09:47:57 +0200

On 06/27/2013 03:37 AM, Cong Wang wrote:
> On Wed, 26 Jun 2013 at 17:01 GMT, Daniel Borkmann <[email-masked]> 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.