summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/ddb/db_examine.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c
index 0590efe6579..643166f7aca 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_examine.c,v 1.16 2007/11/05 19:23:24 miod Exp $ */
+/* $OpenBSD: db_examine.c,v 1.17 2009/11/21 20:40:04 miod Exp $ */
/* $NetBSD: db_examine.c,v 1.11 1996/03/30 22:30:07 christos Exp $ */
/*
@@ -205,20 +205,20 @@ db_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif)
DB_FORMAT_R, 0, sizeof(db_expr_t) * 2 * 6 / 5));
break;
case 'x':
- db_printf("%*x", sizeof(db_expr_t) * 2, addr);
+ db_printf("%*lx", sizeof(db_expr_t) * 2, addr);
break;
case 'z':
db_printf("%s", db_format(tmpfmt, sizeof tmpfmt, addr,
DB_FORMAT_Z, 0, sizeof(db_expr_t) * 2));
break;
case 'd':
- db_printf("%*d", sizeof(db_expr_t) * 2 * 6 / 5, addr);
+ db_printf("%*ld", sizeof(db_expr_t) * 2 * 6 / 5, addr);
break;
case 'u':
- db_printf("%*u", sizeof(db_expr_t) * 2 * 6 / 5, addr);
+ db_printf("%*lu", sizeof(db_expr_t) * 2 * 6 / 5, addr);
break;
case 'o':
- db_printf("%*o", sizeof(db_expr_t) * 2 * 4 / 3, addr);
+ db_printf("%*lo", sizeof(db_expr_t) * 2 * 4 / 3, addr);
break;
case 'c':
value = addr & 0xFF;