From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 8 Aug 2012 18:01:07 +0200 Subject: [U-Boot] [PATCH 1/3] COMMON: Add __stringify() function In-Reply-To: <201208081121.59555.vapier@gentoo.org> References: <1344423139-18610-1-git-send-email-marex@denx.de> <201208081121.59555.vapier@gentoo.org> Message-ID: <201208081801.08035.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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