From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] COMMON: Add __stringify() function
Date: Wed, 8 Aug 2012 11:21:58 -0400 [thread overview]
Message-ID: <201208081121.59555.vapier@gentoo.org> (raw)
In-Reply-To: <1344423139-18610-1-git-send-email-marex@denx.de>
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>
next prev parent reply other threads:[~2012-08-08 15:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 10:52 [U-Boot] [PATCH 1/3] COMMON: Add __stringify() function Marek Vasut
2012-08-08 10:52 ` [U-Boot] [PATCH 2/3] COMMON: Use __stringify() instead of xstr() Marek Vasut
2012-08-08 15:18 ` Mike Frysinger
2012-08-10 20:22 ` Anatolij Gustschin
2012-08-08 10:52 ` [U-Boot] [PATCH 3/3] COMMON: Use __stringify() instead of MK_STR() Marek Vasut
2012-08-08 15:17 ` Mike Frysinger
2012-08-10 20:26 ` Anatolij Gustschin
2012-08-10 21:17 ` Anatolij Gustschin
2012-08-10 21:20 ` Marek Vasut
2012-08-08 15:16 ` [U-Boot] [PATCH 1/3] COMMON: Add __stringify() function Mike Frysinger
2012-08-08 15:21 ` Mike Frysinger [this message]
2012-08-08 16:01 ` Marek Vasut
2012-08-09 2:08 ` Mike Frysinger
2012-08-10 20:21 ` Anatolij Gustschin
2012-08-10 20:45 ` Wolfgang Denk
2012-08-10 20:52 ` Marek Vasut
2012-08-10 21:20 ` Anatolij Gustschin
2012-08-10 21:23 ` Marek Vasut
2012-08-10 20:51 ` [U-Boot] [PATCH 1/3 V2] " Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201208081121.59555.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox