[Crosstoolchain-logs] [device-tree-compiler] 27/57: fdtdump: Discourage use of fdtdump

Vagrant Cascadian vagrant at moszumanska.debian.org
Thu Sep 28 22:03:58 UTC 2017


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

vagrant pushed a commit to branch upstream/latest
in repository device-tree-compiler.

commit 548aea2c436ab47ff09ba9ec7e902e971bbc399c
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Apr 18 13:05:08 2017 +1000

    fdtdump: Discourage use of fdtdump
    
    fdtdump is, and always has been, a quick-and-dirty debugging tool.  However
    I keep getting reports of people using it for real work.  For production
    decompiling of a dtb, dtc in -I dtb -O dts mode is the right tool. In the
    hopes of getting that message out there, add a warning message to fdtdump
    to discourage its use.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 fdtdump.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fdtdump.c b/fdtdump.c
index f199bc5..fa3b561 100644
--- a/fdtdump.c
+++ b/fdtdump.c
@@ -183,6 +183,11 @@ int main(int argc, char *argv[])
 	bool scan = false;
 	off_t len;
 
+	fprintf(stderr, "\n"
+"**** fdtdump is a low-level debugging tool, not meant for general use.\n"
+"**** If you want to decompile a dtb, you probably want\n"
+"****     dtc -I dtb -O dts <filename>\n\n"
+		);
 	while ((opt = util_getopt_long()) != EOF) {
 		switch (opt) {
 		case_USAGE_COMMON_FLAGS

-- 
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