mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
ddb: Fix format string errors in db_pprint.c
Reported by: bapt
Fixes: aada453dcb
("ddb: Properly pretty-print non-labeled enum values")
This commit is contained in:
parent
81727a3dd3
commit
d627293f03
|
@ -226,13 +226,13 @@ db_pprint_enum(db_addr_t addr, struct ctf_type_v3 *type, u_int depth)
|
|||
if (val == ep->cte_value) {
|
||||
valname = db_ctf_stroff_to_str(&sym_data, ep->cte_name);
|
||||
if (valname != NULL) {
|
||||
db_printf("%s (0x%lx)", valname, val);
|
||||
db_printf("%s (0x%lx)", valname, (long)val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ep == endp)
|
||||
db_printf("0x%lx", val);
|
||||
db_printf("0x%lx", (long)val);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue