From: Tom Rini Date: Mon, 24 Nov 2014 17:11:30 -0500 Subject: [U-Boot] [U-Boot,v3,04/30] Add pr_fmt() macro In-Reply-To: <1415842036-28471-5-git-send-email-sjg@chromium.org> References: <1415842036-28471-5-git-send-email-sjg@chromium.org> Message-ID: <20141124221130.GY21184@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Nov 12, 2014 at 06:26:50PM -0700, Simon Glass wrote: > From: Thierry Reding > > 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 > > ... > debug("bar"); > > The resulting message will read: > > foo: bar > > Acked-by: Simon Glass > Signed-off-by: Thierry Reding > Signed-off-by: Simon Glass 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: