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

Marek Vasut marex at denx.de
Wed Aug 8 18:01:07 CEST 2012


Dear Mike Frysinger,

> 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

Ok, I'll send a subsequent patch for these ... what about merging these now tho?

Best regards,
Marek Vasut


More information about the U-Boot mailing list