diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-16 19:42:38 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-16 19:42:38 +0000 |
commit | 4743a67b216c8aba38ca3ae7f25e135225723f06 (patch) | |
tree | 2cb025abdcf68645e5c507928e638d0cba7af4f9 /sys/ddb/db_examine.c | |
parent | 1b15abb8fd6d585adf0aaa204a88a017a2b8e287 (diff) | |
download | FreeBSD-src-4743a67b216c8aba38ca3ae7f25e135225723f06.zip FreeBSD-src-4743a67b216c8aba38ca3ae7f25e135225723f06.tar.gz |
Add a small set of logical operators to DDB command language.
This are based on Mach3.
Documentation is pending but has been promised.
Submitted by: Dan Partelly
Reviewed by: adrian, jhb (older version)
Differential Revision: https://reviews.freebsd.org/D4230
RelNotes: yes
Diffstat (limited to 'sys/ddb/db_examine.c')
-rw-r--r-- | sys/ddb/db_examine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c index a41fcb5..de2bbe4 100644 --- a/sys/ddb/db_examine.c +++ b/sys/ddb/db_examine.c @@ -225,6 +225,10 @@ db_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count, char *modif) else db_printf("\\%03o", (int)value); break; + default: + db_print_format = 'x'; + db_error("Syntax error: unsupported print modifier\n"); + /*NOTREACHED*/ } db_printf("\n"); } |