summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-10-25 19:41:32 +0000
committermux <mux@FreeBSD.org>2002-10-25 19:41:32 +0000
commitbdcd4ebb5d13250d4ca2e13312032e45fee4c725 (patch)
tree75099c64f010b7695aed5d86c9af5ebc925592d8 /sys/ddb
parentedb58880e4d8d9564ad042d1b4d801464f516816 (diff)
downloadFreeBSD-src-bdcd4ebb5d13250d4ca2e13312032e45fee4c725.zip
FreeBSD-src-bdcd4ebb5d13250d4ca2e13312032e45fee4c725.tar.gz
- Rename the DDB specific %z printf format to %y.
- Make DDB use %y instead of %z. - Teach GCC about %y. - Implement support for the C99 %z format modifier. Approved by: re@ Reviewed by: peter Tested on: i386, sparc64
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_examine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c
index 377316a..ccc5ebd 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -129,7 +129,7 @@ db_examine(addr, fmt, count)
case 'z': /* signed hex */
value = db_get_value(addr, size, TRUE);
addr += size;
- db_printf("%-*lz", width, (long)value);
+ db_printf("%-*ly", width, (long)value);
break;
case 'd': /* signed decimal */
value = db_get_value(addr, size, TRUE);
@@ -213,7 +213,7 @@ db_print_cmd(addr, have_addr, count, modif)
db_printf("%8lx", (unsigned long)addr);
break;
case 'z':
- db_printf("%8lz", (long)addr);
+ db_printf("%8ly", (long)addr);
break;
case 'd':
db_printf("%11ld", (long)addr);
OpenPOWER on IntegriCloud