diff options
Diffstat (limited to 'sys/ddb/db_print.c')
-rw-r--r-- | sys/ddb/db_print.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c index 0e55e096f7d..e2e6c17dd1a 100644 --- a/sys/ddb/db_print.c +++ b/sys/ddb/db_print.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_print.c,v 1.4 1996/04/21 22:19:08 deraadt Exp $ */ +/* $OpenBSD: db_print.c,v 1.5 1997/07/06 23:09:24 niklas Exp $ */ /* $NetBSD: db_print.c,v 1.5 1996/02/05 01:57:11 christos Exp $ */ /* @@ -60,12 +60,13 @@ db_show_regs(addr, have_addr, count, modif) for (regp = db_regs; regp < db_eregs; regp++) { db_read_variable(regp, &value); - db_printf("%-12s%#10n", regp->name, value); + db_printf("%-12s%#*ln", regp->name, sizeof(db_expr_t) * 2 * 6 / 5, + (long)value); db_find_xtrn_sym_and_offset((db_addr_t)value, &name, &offset); if (name != 0 && offset <= db_maxoff && offset != value) { db_printf("\t%s", name); if (offset != 0) - db_printf("+%#r", offset); + db_printf("+%#lr", (long)offset); } db_printf("\n"); } |