diff options
Diffstat (limited to 'usr/src/cmd/ctfdump/ctfdump.c')
-rw-r--r-- | usr/src/cmd/ctfdump/ctfdump.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/cmd/ctfdump/ctfdump.c b/usr/src/cmd/ctfdump/ctfdump.c index d54b50c6e7..f739730188 100644 --- a/usr/src/cmd/ctfdump/ctfdump.c +++ b/usr/src/cmd/ctfdump/ctfdump.c @@ -11,6 +11,7 @@ /* * Copyright 2020 Joyent, Inc. + * Copyright 2022 Oxide Computer Company */ /* @@ -483,8 +484,8 @@ static int ctfdump_member_cb(const char *member, ctf_id_t type, ulong_t off, void *arg) { int *count = arg; - ctfdump_printf(CTFDUMP_TYPES, "\t%s type=%ld off=%lu\n", member, type, - off); + ctfdump_printf(CTFDUMP_TYPES, "\t%s type=%ld off=%lu bits (%lu.%lu " + "bytes)\n", member, type, off, off / 8, off % 8); *count = *count + 1; return (0); } |