[Crosstoolchain-logs] [device-tree-compiler] 19/357: Forgot to realign after emitting auto-generated "name" properties. Oops.

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:44 UTC 2016


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

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

commit 41916138dddbae54e4153d11db10fd7695633d27
Author: David Gibson <dgibson at sneetch.(none)>
Date:   Thu Aug 25 15:39:09 2005 +1000

    Forgot to realign after emitting auto-generated "name" properties.  Oops.
---
 flattree.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/flattree.c b/flattree.c
index 9d84b19..408f8c6 100644
--- a/flattree.c
+++ b/flattree.c
@@ -277,6 +277,7 @@ static void flatten_tree(struct node *tree, struct emitter *emit,
 			emit->align(etarget, 8);
 
 		emit->string(etarget, tree->name, tree->basenamelen);
+		emit->align(etarget, sizeof(cell_t));
 	}
 
 	for_each_child(tree, child) {
@@ -844,7 +845,7 @@ struct boot_info *dt_from_blob(FILE *f)
 	val = flat_read_word(&dtbuf);
 
 	if (val != OF_DT_BEGIN_NODE)
-		die("Device tree blob doesn't begin with OF_DT_BEGIN_NODE\n");
+		die("Device tree blob doesn't begin with OF_DT_BEGIN_NODE (begins with 0x%08x)\n", val);
 
 	tree = unflatten_tree(&dtbuf, &strbuf, "", 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