commit | 09cf4cd9df1aca4e900d6941b8859bb84f23d4ed | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Wed Nov 12 18:26:50 2014 -0700 |
committer | Tom Rini <trini@ti.com> | Sun Nov 23 06:49:02 2014 -0500 |
tree | 5c2d603caa829d82373aa799c66a3abb980b5232 | |
parent | 699b6d3d882817708d38157805929972606f2cb6 [diff] |
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>