Skip to content

Commit 145ec7d

Browse files
mpepaulusmack
authored andcommitted
[PATCH] ppc64: Fix a misleading printk in unflatten_dt_node()
When unflatten_dt_node() fails to find an OF_DT_END_NODE tag it prints "Weird tag at start of node", this should be "Weird tag at end of node". Signed-off-by: Michael Ellerman <[email protected]> arch/ppc64/kernel/prom.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Signed-off-by: Paul Mackerras <[email protected]>
1 parent 180a336 commit 145ec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/ppc64/kernel/prom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ static unsigned long __init unflatten_dt_node(unsigned long mem,
918918
tag = *((u32 *)(*p));
919919
}
920920
if (tag != OF_DT_END_NODE) {
921-
printk("Weird tag at start of node: %x\n", tag);
921+
printk("Weird tag at end of node: %x\n", tag);
922922
return mem;
923923
}
924924
*p += 4;

0 commit comments

Comments
 (0)