Re: [PATCH] vsprintf: do not append unset Scope ID to IPv6

From: Daniel Borkmann
Date: Wed Feb 03 2016 - 17:09:24 EST


On 02/03/2016 10:47 PM, Joe Perches wrote:
On Wed, 2016-02-03 at 22:14 +0100, Jason A. Donenfeld wrote:
The idea here is to be able to printk a sockaddr_in6, and have it show
something that looks like what the user would naturally pass to
getaddrinfo(3), which is entirely complete.

However, I could be convinced that this kind of behavior belongs in
it's own flag. Maybe I'll cook up a flag for that instead.

I think that'd be best.

Agreed.

Maybe using something like %pISG for this that
would optionally show these flow and scope values
only when non-zero.

Something like:

Looks good to me, having this as a single generic option seems
even cleaner.

Thanks!