summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2019-01-09 18:11:22 +0000
committerbluhm <bluhm@openbsd.org>2019-01-09 18:11:22 +0000
commita0a44ae946a5d9cb79e8e22e5fbd7d3aa75640fe (patch)
tree270073e316d045fb75cab2f670db224b73d4c4ec
parentDelay keyword expansion in co until after the locks have been resolved. (diff)
downloadwireguard-openbsd-a0a44ae946a5d9cb79e8e22e5fbd7d3aa75640fe.tar.xz
wireguard-openbsd-a0a44ae946a5d9cb79e8e22e5fbd7d3aa75640fe.zip
Printing hex values with right adjustment makes it easier to compare
corresponding digits. So the change the ddb x/x output. OK sashan@ deraadt@ visa@ mpi@
-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 d8fec8219f1..2045d849ee2 100644
--- a/sys/ddb/db_examine.c
+++ b/sys/ddb/db_examine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_examine.c,v 1.23 2016/10/18 19:46:00 naddy Exp $ */
+/* $OpenBSD: db_examine.c,v 1.24 2019/01/09 18:11:22 bluhm Exp $ */
/* $NetBSD: db_examine.c,v 1.11 1996/03/30 22:30:07 christos Exp $ */
/*
@@ -130,7 +130,7 @@ db_examine(db_addr_t addr, char *fmt, int count)
break;
case 'x': /* unsigned hex */
value = db_get_value(addr, size, FALSE);
- db_printf("%-*lx", width, (long)value);
+ db_printf("%*lx", width, (long)value);
break;
case 'm': /* hex dump */
/*