LWN.net Logo

Re: the printk problem

From:  Jan Engelhardt <jengelh-AT-medozas.de>
To:  Andrew Morton <akpm-AT-linux-foundation.org>
Subject:  Re: the printk problem
Date:  Sat, 5 Jul 2008 13:33:29 +0200 (CEST)
Message-ID:  <alpine.LNX.1.10.0807051332200.28765@fbirervta.pbzchgretzou.qr>
Cc:  Matthew Wilcox <matthew-AT-wil.cx>, Linus Torvalds <torvalds-AT-linux-foundation.org>, Peter Anvin <hpa-AT-zytor.com>, "David S. Miller" <davem-AT-davemloft.net>, linux-ia64-AT-vger.kernel.org, linuxppc-dev-AT-ozlabs.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article, Thread


On Saturday 2008-07-05 00:01, Andrew Morton wrote:
>
>We don't know how much interest there would be in churning NIPQUAD from
>the net guys.  Interestingly, there's also %C (wint_t) which is a
>32-bit quantity.  So we could just go and say "%C prints an ipv4
>address" and be done with it.  But there's no way of doing that for
>ipv6 addresses so things would become asymmetrical there.

	struct in6_addr src;
	printk("Source address: %p{ipv6}\n", &src);

How about %p{feature}?
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds