summaryrefslogtreecommitdiff
path: root/checks.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-03-27 14:13:31 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2018-03-28 10:13:15 +1100
commitf4eba68d89ee8d35d1f94ec8b38481a64a5395e7 (patch)
treefb5a065010a51c8fcbcd41574c9456dc0cb1fcc2 /checks.c
parent46df1fb1b211ec65b004c79b0f7adae25fb49dc3 (diff)
downloaddevice-tree-compiler-f4eba68d89ee8d35d1f94ec8b38481a64a5395e7.tar.gz
checks: Print duplicate node name instead of parent name
When refactoring node path printing, the code checking for duplicate node names was accidentally changed to print the name of the parent node, instead of the name of the duplicated child node. Fixes: 88960e3989073207 ("checks: centralize printing of node path in check_msg") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'checks.c')
-rw-r--r--checks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checks.c b/checks.c
index 1e6a88c..e6a38a8 100644
--- a/checks.c
+++ b/checks.c
@@ -255,7 +255,7 @@ static void check_duplicate_node_names(struct check *c, struct dt_info *dti,
child2;
child2 = child2->next_sibling)
if (streq(child->name, child2->name))
- FAIL(c, dti, node, "Duplicate node name");
+ FAIL(c, dti, child2, "Duplicate node name");
}
ERROR(duplicate_node_names, check_duplicate_node_names, NULL);