aboutsummaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-10-18 16:55:08 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-10-26 09:25:14 +0200
commit2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91 (patch)
tree1d883d6e825c878cd453ddc88bb46e71f3554da8 /dtc.c
parent2e6fe5a107b562ce0c0ba18a9a49dd30c74ae069 (diff)
downloaddtc-2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91.zip
dtc-2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91.tar.gz
dtc-2d45d1c5c65e9b3cd020fac624ed9bf6c2855a91.tar.bz2
Replace FDT_VERSION() with stringify()
The FDT_VERSION() and _FDT_VERSION() macros don't really have anything specific to do with the fdt version. Rather, they're the common CPP "stringify" idiom. Move to util.h and rename to stringify() to reflect this. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
-rw-r--r--dtc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dtc.c b/dtc.c
index 5ed873c..1655b2f 100644
--- a/dtc.c
+++ b/dtc.c
@@ -59,8 +59,6 @@ static void fill_fullpaths(struct node *tree, const char *prefix)
}
/* Usage related data. */
-#define FDT_VERSION(version) _FDT_VERSION(version)
-#define _FDT_VERSION(version) #version
static const char usage_synopsis[] = "dtc [options] <input file>";
static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:a:fb:i:H:sW:E:@Ahv";
static struct option const usage_long_opts[] = {
@@ -98,7 +96,7 @@ static const char * const usage_opts_help[] = {
"\t\tdts - device tree source text\n"
"\t\tdtb - device tree blob\n"
"\t\tasm - assembler source",
- "\n\tBlob version to produce, defaults to "FDT_VERSION(DEFAULT_FDT_VERSION)" (for dtb and asm output)",
+ "\n\tBlob version to produce, defaults to "stringify(DEFAULT_FDT_VERSION)" (for dtb and asm output)",
"\n\tOutput dependency file",
"\n\tMake space for <number> reserve map entries (for dtb and asm output)",
"\n\tMake the blob at least <bytes> long (extra space)",