diff options
| author | Robert Mustacchi <rm@fingolfin.org> | 2022-11-05 02:26:54 +0000 |
|---|---|---|
| committer | Robert Mustacchi <rm@fingolfin.org> | 2022-11-08 23:25:57 +0000 |
| commit | db9597bf18e3b86bdb922182aa97f27a48f83858 (patch) | |
| tree | 5767e4eebfb987aea5c4b5240761ba967f5cef58 /usr/src/cmd | |
| parent | b4fb003914e70b41d96dec8011864f6af1faf3ef (diff) | |
| download | illumos-gate-db9597bf18e3b86bdb922182aa97f27a48f83858.tar.gz | |
15152 ctfdump member output could be easider to decode
Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@mnx.io>
Diffstat (limited to 'usr/src/cmd')
| -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); } |
