diff options
| author | 2006-09-30 14:31:28 +0000 | |
|---|---|---|
| committer | 2006-09-30 14:31:28 +0000 | |
| commit | 4c0aa4c686ca5ef0cd8585d4c2ade32a69bf68ce (patch) | |
| tree | 7f4358992a15afb2b9c75dde00a59a514723a09b /sys/ddb/db_command.c | |
| parent | Reset device on errors. (diff) | |
| download | wireguard-openbsd-4c0aa4c686ca5ef0cd8585d4c2ade32a69bf68ce.tar.xz wireguard-openbsd-4c0aa4c686ca5ef0cd8585d4c2ade32a69bf68ce.zip | |
no malloc debug but configured kmemstats allow 'sh mal' to print smth useful; miod@ ok
Diffstat (limited to 'sys/ddb/db_command.c')
| -rw-r--r-- | sys/ddb/db_command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 6e6906bb871..2c42fb89a8d 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.44 2006/08/24 21:10:14 miod Exp $ */ +/* $OpenBSD: db_command.c,v 1.45 2006/09/30 14:31:28 mickey Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -37,6 +37,7 @@ #include <sys/extent.h> #include <sys/pool.h> #include <sys/msgbuf.h> +#include <sys/malloc.h> #include <uvm/uvm_extern.h> #include <machine/db_machdep.h> /* type definitions */ @@ -316,7 +317,7 @@ db_malloc_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) debug_malloc_printit(db_printf, (vaddr_t)addr); #else - db_printf("Malloc debugging not enabled.\n"); + malloc_printit(db_printf); #endif } |
