summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>2013-12-29 19:38:54 -0500
committerRichard Lowe <richlowe@richlowe.net>2014-01-05 15:59:58 -0500
commit4cf73299b119968f5f0090a5f98b799fad68dfc5 (patch)
tree0c291b04d0cd3847a47d59436809f272e2e68a4d
parentd683e1b2ef0b026004841f3c0dc3a1aa84524382 (diff)
downloadillumos-joyent-4cf73299b119968f5f0090a5f98b799fad68dfc5.tar.gz
4436 ::dis -b fails to separate address columns
Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r--usr/src/cmd/mdb/common/mdb/mdb_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/mdb/common/mdb/mdb_cmds.c b/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
index af45b70ca3..a89d022d1e 100644
--- a/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
+++ b/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
@@ -2010,7 +2010,7 @@ cmd_dis(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
if (opt_a)
mdb_printf("%-#32p%8T%s\n", addr, buf);
else if (opt_b)
- mdb_printf("%-#10p%-#32a%8T%s\n",
+ mdb_printf("%-#?p %-#32a%8T%s\n",
addr, addr, buf);
else
mdb_printf("%-#32a%8T%s\n", addr, buf);
@@ -2034,7 +2034,7 @@ cmd_dis(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
if (opt_a)
mdb_printf("%-#32p%8T%s\n", oaddr, buf);
else if (opt_b)
- mdb_printf("%-#10p%-#32a%8T%s\n",
+ mdb_printf("%-#?p %-#32a%8T%s\n",
oaddr, oaddr, buf);
else
mdb_printf("%-#32a%8T%s\n", oaddr, buf);
@@ -2049,7 +2049,7 @@ cmd_dis(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
if (opt_a)
mdb_printf("%-#32p%8T%s%", addr, buf);
else if (opt_b)
- mdb_printf("%-#10p%-#32a%8T%s", addr, addr, buf);
+ mdb_printf("%-#?p %-#32a%8T%s", addr, addr, buf);
else
mdb_printf("%-#32a%8T%s%", addr, buf);
mdb_printf("%</b>\n");
@@ -2062,7 +2062,7 @@ cmd_dis(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
if (opt_a)
mdb_printf("%-#32p%8T%s\n", addr, buf);
else if (opt_b)
- mdb_printf("%-#10p%-#32a%8T%s\n",
+ mdb_printf("%-#?p %-#32a%8T%s\n",
addr, addr, buf);
else
mdb_printf("%-#32a%8T%s\n", addr, buf);