Thread (1 message) 1 message, 1 author, 2015-01-21

Re: [PATCH] of: Custom printk format specifier for device node

From: Måns Rullgård <hidden>
Date: 2015-01-21 17:59:41
Also in: lkml

Pantelis Antoniou [off-list ref] writes:
Hi Joe,
quoted
On Jan 21, 2015, at 19:37 , Joe Perches [off-list ref] wrote:

On Wed, 2015-01-21 at 19:06 +0200, Pantelis Antoniou wrote:
quoted
90% of the usage of device node's full_name is printing it out
in a kernel message. Preparing for the eventual delayed allocation
introduce a custom printk format specifier that is both more
compact and more pleasant to the eye.

For instance typical use is:
	pr_info("Frobbing node %s\n", node->full_name);

Which can be written now as:
	pr_info("Frobbing node %pO\n", node);
Still disliking use of %p0.
Choices are limited. And it’s pO not p0.
O as in OF.  Makes sense.

-- 
Måns Rullgård
mans-2StjZFpD7GcAvxtiuMwx3w@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help