]> Zhao Yanbai Git Server - minix.git/commitdiff
is: leave newline for stacktrace for SF9 dump 29/629/2
authorBen Gras <ben@minix3.org>
Tue, 11 Jun 2013 15:19:38 +0000 (15:19 +0000)
committerBen Gras <ben@minix3.org>
Wed, 12 Jun 2013 07:04:53 +0000 (07:04 +0000)
. otherwise the standard console screen can't hold them

Change-Id: Iea2c047b715bc456747aace8957d8c5eeb94d0fa

servers/is/dmp_kernel.c

index 34f477e1ff7de1800a6227583c7ca2a42bf821b4..ff9d53b6c11728a209b13f8d957c15ab32ec2c75 100644 (file)
@@ -33,7 +33,7 @@ static int pagelines;
        for (rp = oldrp; rp < END_PROC_ADDR; rp++) { \
          oldrp = BEG_PROC_ADDR; \
          if (isemptyp(rp)) continue; \
-         if (++pagelines > LINES) { oldrp = rp; printf("--more--\n"); break; }\
+         if (++pagelines >= LINES) { oldrp = rp; printf("--more--\n"); break; }\
          if (proc_nr(rp) == IDLE)      printf("(%2d) ", proc_nr(rp));  \
          else if (proc_nr(rp) < 0)     printf("[%2d] ", proc_nr(rp));  \
          else                          printf(" %2d  ", proc_nr(rp));
@@ -369,6 +369,7 @@ void procstack_dmp()
 
   PROCLOOP(rp, oldrp)
        PRINTRTS(rp);
+       printf("\n"); pagelines++;
        sys_sysctl_stacktrace(rp->p_endpoint);
   }
 }