diff options
author | jhb <jhb@FreeBSD.org> | 2001-04-20 01:08:27 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-04-20 01:08:27 +0000 |
commit | 297eccb6eb84c27755c059bd6720c525ff807790 (patch) | |
tree | 014396f0ca147cb90c96d9745050f0a6b497604e /sys/amd64 | |
parent | 824b4436452269c71857b89719a4fe985a0dd460 (diff) | |
download | FreeBSD-src-297eccb6eb84c27755c059bd6720c525ff807790.zip FreeBSD-src-297eccb6eb84c27755c059bd6720c525ff807790.tar.gz |
Split up the db_printf's for 'show pcpu' so that we only output at most one
line for each db_printf(). Also, just use spaces to line the columns up
rather than trying to be fancy with tabs.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/db_interface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_interface.c b/sys/amd64/amd64/db_interface.c index 1e2d37f..8c7dc0b 100644 --- a/sys/amd64/amd64/db_interface.c +++ b/sys/amd64/amd64/db_interface.c @@ -347,13 +347,15 @@ DB_SHOW_COMMAND(pcpu, db_show_pcpu) if (gd == NULL) db_printf("CPU %d not found\n", id); else { - db_printf("cpuid\t = %d\ncurproc\t = ", gd->gd_cpuid); + db_printf("cpuid = %d\n", gd->gd_cpuid); + db_printf("curproc = "); if (gd->gd_curproc != NULL) db_printf("%p: pid %d \"%s\"\n", gd->gd_curproc, gd->gd_curproc->p_pid, gd->gd_curproc->p_comm); else db_printf("none\n"); - db_printf("curpcb\t = %p\nnpxproc\t = ", gd->gd_curpcb); + db_printf("curpcb = %p\n", gd->gd_curpcb); + db_printf("npxproc = "); if (gd->gd_npxproc != NULL) db_printf("%p: pid %d \"%s\"\n", gd->gd_npxproc, gd->gd_npxproc->p_pid, gd->gd_npxproc->p_comm); |