Home
last modified time | relevance | path

Searched hist:be25d875b924cbd50d49fd9f343e70d86b7ad7e0 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/include/
H A Dcommon.hbe25d875b924cbd50d49fd9f343e70d86b7ad7e0 Thu Nov 13 01:26:50 UTC 2014 Thierry Reding <treding@nvidia.com> Add pr_fmt() macro

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>