diff options
| author | skrll <skrll@NetBSD.org> | 2020-04-13 11:43:27 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2020-04-13 11:43:27 +0000 |
| commit | e490201afdcf65026d706b7ce6496df7a7822c8c (patch) | |
| tree | f73e643d3696ba2dca5585147fd46e4f3109d14f /sys/ddb | |
| parent | bd804ee77af6ea1f7707321cca05ac22afcf1cab (diff) | |
Handle "no count" properly in db_kernhist_print_cmd
Diffstat (limited to 'sys/ddb')
| -rw-r--r-- | sys/ddb/db_command.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index b2a21da5689..bf809393851 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_command.c,v 1.169 2020/03/10 15:58:36 christos Exp $ */ +/* $NetBSD: db_command.c,v 1.170 2020/04/13 11:43:27 skrll Exp $ */ /* * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009, 2019 @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.169 2020/03/10 15:58:36 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.170 2020/04/13 11:43:27 skrll Exp $"); #ifdef _KERNEL_OPT #include "opt_aio.h" @@ -1290,6 +1290,10 @@ db_kernhist_print_cmd(db_expr_t addr, bool have_addr, if (!have_addr) addr = 0; + + if (count == -1) + count = 0; + kernhist_print((void *)(uintptr_t)addr, count, modif, db_printf); } #endif |
