diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2026-04-23 17:05:54 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2026-04-23 17:05:54 +0000 |
| commit | fe2957f591b55d9cbd70cf1325048012fc833fbb (patch) | |
| tree | a7ce33abbe0d3016c666f3653a58c6698c8fd837 /sys/ddb | |
| parent | 8a0ff500d713ab314d2a728fdd1f34960ee055b7 (diff) | |
Diffstat (limited to 'sys/ddb')
| -rw-r--r-- | sys/ddb/db_ps.c | 4 | ||||
| -rw-r--r-- | sys/ddb/db_thread.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index a26cf8161294..8e027997ea75 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -358,8 +358,8 @@ DB_SHOW_COMMAND(thread, db_show_thread) if (td->td_name[0] != '\0') db_printf(" name: %s\n", td->td_name); db_printf(" pcb: %p\n", td->td_pcb); - db_printf(" stack: %p-%p\n", (void *)td->td_kstack, - (void *)(td->td_kstack + td->td_kstack_pages * PAGE_SIZE - 1)); + db_printf(" stack: %p-%p\n", td->td_kstack, + td->td_kstack + td->td_kstack_pages * PAGE_SIZE - 1); db_printf(" flags: %#x ", td->td_flags); db_printf(" pflags: %#x\n", td->td_pflags); db_printf(" state: "); diff --git a/sys/ddb/db_thread.c b/sys/ddb/db_thread.c index 38ca9fa84f64..aac04868b9c9 100644 --- a/sys/ddb/db_thread.c +++ b/sys/ddb/db_thread.c @@ -84,7 +84,7 @@ db_show_threads(db_expr_t addr, bool hasaddr, db_expr_t cnt, char *mod) thr = kdb_thr_first(); while (!db_pager_quit && thr != NULL) { db_printf(" %6ld (%p) (stack %p) ", (long)thr->td_tid, thr, - (void *)thr->td_kstack); + thr->td_kstack); prev_jb = kdb_jmpbuf(jb); if (setjmp(jb) == 0) { if (db_trace_thread(thr, 1) != 0) |
