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

Tom Rini
2014-11-24T22:11:30Z

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

> From: Thierry Reding <treding@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@chromium.org>
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> Signed-off-by: Simon Glass <sjg@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>