diff options
| author | 2010-11-05 15:17:50 +0000 | |
|---|---|---|
| committer | 2010-11-05 15:17:50 +0000 | |
| commit | 76262c1d36042e3e766ab8638e01e56df37bdce9 (patch) | |
| tree | b9678704260168dcd3b67cc452e85bccaf1abf03 /sys/ddb/db_command.c | |
| parent | - fix possible use of uninitialized variable. (diff) | |
| download | wireguard-openbsd-76262c1d36042e3e766ab8638e01e56df37bdce9.tar.xz wireguard-openbsd-76262c1d36042e3e766ab8638e01e56df37bdce9.zip | |
Implement m_print as real ddb command "show mbuf addr" in the way other
such commands are implemented.
"Ja! You'll need to update ddb.4 as well, of course." miod@
Diffstat (limited to 'sys/ddb/db_command.c')
| -rw-r--r-- | sys/ddb/db_command.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 3bf33d09eaf..b55479d8d04 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.c,v 1.61 2010/01/19 01:08:16 guenther Exp $ */ +/* $OpenBSD: db_command.c,v 1.62 2010/11/05 15:17:50 claudio Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ /* @@ -324,6 +324,13 @@ db_malloc_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) /*ARGSUSED*/ void +db_mbuf_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) +{ + m_print((void *)addr, db_printf); +} + +/*ARGSUSED*/ +void db_mount_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { boolean_t full = FALSE; @@ -512,6 +519,7 @@ struct db_command db_show_cmds[] = { { "extents", db_extent_print_cmd, 0, NULL }, { "malloc", db_malloc_print_cmd, 0, NULL }, { "map", db_map_print_cmd, 0, NULL }, + { "mbuf", db_mbuf_print_cmd, 0, NULL }, { "mount", db_mount_print_cmd, 0, NULL }, #ifdef NFSCLIENT { "nfsreq", db_nfsreq_print_cmd, 0, NULL }, |
