Skip to content

Commit

Permalink
[PATCH] ppc64: Fix a misleading printk in unflatten_dt_node()
Browse files Browse the repository at this point in the history
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 <michael@ellerman.id.au>

 arch/ppc64/kernel/prom.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Aug 29, 2005
1 parent 180a336 commit 145ec7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ static unsigned long __init unflatten_dt_node(unsigned long mem,
tag = *((u32 *)(*p));
}
if (tag != OF_DT_END_NODE) {
printk("Weird tag at start of node: %x\n", tag);
printk("Weird tag at end of node: %x\n", tag);
return mem;
}
*p += 4;
Expand Down

0 comments on commit 145ec7d

Please sign in to comment.