All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Borkmann <dborkman@redhat.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next 1/2] lib: vsprintf: add IPv4/v6 generic %pig/%pIg format specifier
Date: Thu, 27 Jun 2013 09:47:57 +0200	[thread overview]
Message-ID: <51CBEE2D.1080209@redhat.com> (raw)
In-Reply-To: <kqg4vt$1hv$1@ger.gmane.org>

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

  reply	other threads:[~2013-06-27  7:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-26 17:01 [PATCH net-next 0/2] Rework SCTP debugging framework Daniel Borkmann
2013-06-26 17:01 ` Daniel Borkmann
2013-06-26 17:01 ` [PATCH net-next 1/2] lib: vsprintf: add IPv4/v6 generic %pig/%pIg format specifier Daniel Borkmann
2013-06-26 17:01   ` Daniel Borkmann
2013-06-26 17:27   ` Vlad Yasevich
2013-06-26 17:27     ` Vlad Yasevich
2013-06-26 18:35     ` Daniel Borkmann
2013-06-26 18:35       ` Daniel Borkmann
2013-06-27 11:00     ` Neil Horman
2013-06-27 11:00       ` Neil Horman
2013-06-27  1:05   ` Joe Perches
2013-06-27  1:05     ` Joe Perches
2013-06-27  7:53     ` Daniel Borkmann
2013-06-27  7:53       ` Daniel Borkmann
2013-06-27  1:37   ` Cong Wang
2013-06-27  7:47     ` Daniel Borkmann [this message]
2013-06-26 17:01 ` [PATCH net-next 2/2] net: sctp: rework debugging framework to use pr_debug and friends Daniel Borkmann
2013-06-26 17:01   ` Daniel Borkmann
2013-06-27  2:32   ` Vlad Yasevich
2013-06-27  2:32     ` Vlad Yasevich
2013-06-26 20:26 ` [PATCH net-next 0/2] Rework SCTP debugging framework David Miller
2013-06-26 20:26   ` David Miller
2013-06-26 20:53   ` Daniel Borkmann
2013-06-26 20:53     ` Daniel Borkmann

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=51CBEE2D.1080209@redhat.com \
    --to=dborkman@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=xiyou.wangcong@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.