[U-Boot] [PATCH 1/3] COMMON: Add __stringify() function

Mike Frysinger vapier at gentoo.org
Wed Aug 8 17:21:58 CEST 2012


On Wednesday 08 August 2012 06:52:17 Marek Vasut wrote:
> This function converts static number to string in preprocessor.
> This is useful as it allows higher usage of puts() in favour of printf()

a few more to convert:
include/nios2.h:#define _str_(x) #x
include/configs/astro_mcf5373l.h:#define _QUOTEME(x)    #x
include/configs/tegra2-common.h:#define QUOTE_(m)       #m
board/logicpd/zoom2/zoom2_serial.h:#define S(a) #a

not sure if we also want to clean up (in case they're copied from Linux -- 
then we'd prob just leave these headers alone, but fix any usage outside of the 
headers to use your new stringify):
arch/mips/include/asm/mipsregs.h:#define __STR(x) #x
arch/powerpc/include/asm/processor.h:#define tostring(s)        #s
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120808/48065c03/attachment.pgp>


More information about the U-Boot mailing list