Commit 39334a4b authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix typo in dump_tl1_traplog()

Actually make use of the 'limit' we compute.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37133c00
...@@ -79,7 +79,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p) ...@@ -79,7 +79,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p)
"dumping track stack.\n", p->tl); "dumping track stack.\n", p->tl);
limit = (tlb_type == hypervisor) ? 2 : 4; limit = (tlb_type == hypervisor) ? 2 : 4;
for (i = 0; i < 4; i++) { for (i = 0; i < limit; i++) {
printk(KERN_EMERG printk(KERN_EMERG
"TRAPLOG: Trap level %d TSTATE[%016lx] TPC[%016lx] " "TRAPLOG: Trap level %d TSTATE[%016lx] TPC[%016lx] "
"TNPC[%016lx] TT[%lx]\n", "TNPC[%016lx] TT[%lx]\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment