[Crosstoolchain-logs] [device-tree-compiler] 139/198: dtc: Update the usage helper message

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:07:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit 1e5ddb1f39753a37fd60a7b49f858e4fee8cd998
Author: Wang Long <long.wanglong at huawei.com>
Date:   Thu Sep 11 15:16:37 2014 +0800

    dtc: Update the usage helper message
    
    if #define DEFAULT_FDT_VERSION     17
    The message
    	Blob version to produce, defaults to %d (for dtb and asm output)
    should be
    	Blob version to produce, defaults to 17 (for dtb and asm output)
    
    This patch fix it, and delete the redundant 't'.
    
    Signed-off-by: Wang Long <long.wanglong at huawei.com>
---
 dtc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dtc.c b/dtc.c
index e3665b6..8c4add6 100644
--- a/dtc.c
+++ b/dtc.c
@@ -48,6 +48,8 @@ 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:fb:i:H:sW:E:hv";
 static struct option const usage_long_opts[] = {
@@ -82,9 +84,9 @@ 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 %d (for dtb and asm output)", //, DEFAULT_FDT_VERSION);
+	"\n\tBlob version to produce, defaults to "FDT_VERSION(DEFAULT_FDT_VERSION)" (for dtb and asm output)",
 	"\n\tOutput dependency file",
-	"\n\ttMake space for <number> reserve map entries (for dtb and asm output)",
+	"\n\tMake space for <number> reserve map entries (for dtb and asm output)",
 	"\n\tMake the blob at least <bytes> long (extra space)",
 	"\n\tAdd padding to the blob of <bytes> long (extra space)",
 	"\n\tSet the physical boot cpu",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list