summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_examine.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-08 10:53:58 +0000
committerbde <bde@FreeBSD.org>1998-07-08 10:53:58 +0000
commitc9efed72bc8dec26d2f4b9e8e0f798fd6c0b09a4 (patch)
tree80c572fd7be896b8222146b062af0b33e4651633 /sys/ddb/db_examine.c
parentb5d9d2e7066642affdab55e8415242ac5619218d (diff)
downloadFreeBSD-src-c9efed72bc8dec26d2f4b9e8e0f798fd6c0b09a4.zip
FreeBSD-src-c9efed72bc8dec26d2f4b9e8e0f798fd6c0b09a4.tar.gz
Use not-so-new printf formats %r and/or %z instead of %n and/or %+x.
Diffstat (limited to 'sys/ddb/db_examine.c')
-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 9dd9d09..464197d 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_examine.c,v 1.22 1998/07/05 10:10:33 dfr Exp $
+ * $Id: db_examine.c,v 1.23 1998/07/08 06:27:22 bde Exp $
*/
/*
@@ -120,7 +120,7 @@ db_examine(addr, fmt, count)
case 'r': /* signed, current radix */
value = db_get_value(addr, size, TRUE);
addr += size;
- db_printf("%+-*n", width, value);
+ db_printf("%+-*r", width, value);
break;
case 'x': /* unsigned hex */
value = db_get_value(addr, size, FALSE);
@@ -130,7 +130,7 @@ db_examine(addr, fmt, count)
case 'z': /* signed hex */
value = db_get_value(addr, size, TRUE);
addr += size;
- db_printf("%+-*x", width, value);
+ db_printf("%-*z", width, value);
break;
case 'd': /* signed decimal */
value = db_get_value(addr, size, TRUE);
@@ -208,13 +208,13 @@ db_print_cmd(addr, have_addr, count, modif)
db_printsym((db_addr_t)addr, DB_STGY_ANY);
break;
case 'r':
- db_printf("%+11ln", (long)addr);
+ db_printf("%+11lr", (long)addr);
break;
case 'x':
db_printf("%8lx", (unsigned long)addr);
break;
case 'z':
- db_printf("%+8lx", (long)addr);
+ db_printf("%8lz", (long)addr);
break;
case 'd':
db_printf("%11ld", (long)addr);
OpenPOWER on IntegriCloud