[U-Boot] [U-Boot,v3,04/30] Add pr_fmt() macro

Tom Rini trini at ti.com
Mon Nov 24 23:11:30 CET 2014


On Wed, Nov 12, 2014 at 06:26:50PM -0700, Simon Glass wrote:

> From: Thierry Reding <treding at nvidia.com>
> 
> This macro can be overridden in source files (before including common.h)
> and can be used to specify a prefix for debug and error messages. An
> example of how to use this is shown below:
> 
> 	#define pr_fmt(fmt) "foo: " fmt
> 
> 	#include <common.h>
> 
> 	...
> 	debug("bar");
> 
> The resulting message will read:
> 
> 	foo: bar
> 
> Acked-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141124/9e9a36a0/attachment.pgp>


More information about the U-Boot mailing list