Skip to content
Snippets Groups Projects
Commit be25d875 authored by Thierry Reding's avatar Thierry Reding Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 4efe52bf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment