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:
Bojan Novković 2024-04-03 17:55:13 +02:00
parent aada453dcb
commit 872c4402af

View file

@ -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);
}
}