is: leave newline for stacktrace for SF9 dump
. otherwise the standard console screen can't hold them Change-Id: Iea2c047b715bc456747aace8957d8c5eeb94d0fa
This commit is contained in:
parent
9e43052b21
commit
8d676bd0a8
1 changed files with 2 additions and 1 deletions
|
@ -33,7 +33,7 @@ static int pagelines;
|
||||||
for (rp = oldrp; rp < END_PROC_ADDR; rp++) { \
|
for (rp = oldrp; rp < END_PROC_ADDR; rp++) { \
|
||||||
oldrp = BEG_PROC_ADDR; \
|
oldrp = BEG_PROC_ADDR; \
|
||||||
if (isemptyp(rp)) continue; \
|
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)); \
|
if (proc_nr(rp) == IDLE) printf("(%2d) ", proc_nr(rp)); \
|
||||||
else if (proc_nr(rp) < 0) printf("[%2d] ", proc_nr(rp)); \
|
else if (proc_nr(rp) < 0) printf("[%2d] ", proc_nr(rp)); \
|
||||||
else printf(" %2d ", proc_nr(rp));
|
else printf(" %2d ", proc_nr(rp));
|
||||||
|
@ -369,6 +369,7 @@ void procstack_dmp()
|
||||||
|
|
||||||
PROCLOOP(rp, oldrp)
|
PROCLOOP(rp, oldrp)
|
||||||
PRINTRTS(rp);
|
PRINTRTS(rp);
|
||||||
|
printf("\n"); pagelines++;
|
||||||
sys_sysctl_stacktrace(rp->p_endpoint);
|
sys_sysctl_stacktrace(rp->p_endpoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue