]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Fix typo in dump_tl1_traplog()
authorDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Feb 2006 08:54:09 +0000 (00:54 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:43 +0000 (01:13 -0800)
Actually make use of the 'limit' we compute.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/traps.c

index 4eb2ee1125d11831d172040fa852cce3830c9451..78268217b0623f73a77d4fa5689be18f7ff09a55 100644 (file)
@@ -79,7 +79,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p)
               "dumping track stack.\n", p->tl);
 
        limit = (tlb_type == hypervisor) ? 2 : 4;
-       for (i = 0; i < 4; i++) {
+       for (i = 0; i < limit; i++) {
                printk(KERN_EMERG
                       "TRAPLOG: Trap level %d TSTATE[%016lx] TPC[%016lx] "
                       "TNPC[%016lx] TT[%lx]\n",