mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
ddb: Don't throw away qualifier when pretty-printing unnamed pointers
Reported by: jrtc27
Fixes: c21bc6f
("ddb: Add CTF-based pretty printing")
Approved by: markj (mentor)
This commit is contained in:
parent
aada453dcb
commit
872c4402af
|
@ -276,7 +276,7 @@ db_pprint_ptr(db_addr_t addr, struct ctf_type_v3 *type, u_int depth)
|
|||
if (name != NULL)
|
||||
db_printf("(%s%s *) 0x%lx", qual, name, (long)val);
|
||||
else
|
||||
db_printf("0x%lx", (long)val);
|
||||
db_printf("(%s *) 0x%lx", qual, (long)val);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue