mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 20:50:29 +01:00
aux/trace: fix (u)int dump
The PRI* macros don't include the required introductory % character
Fixes: d29bb6467e ("aux/trace: use stdint.h types")
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24057>
This commit is contained in:
parent
77b76074fc
commit
f4ed778cc1
1 changed files with 2 additions and 2 deletions
|
|
@ -457,7 +457,7 @@ void trace_dump_int(int64_t value)
|
|||
if (!dumping)
|
||||
return;
|
||||
|
||||
trace_dump_writef("<int>" PRIi64 "</int>", value);
|
||||
trace_dump_writef("<int>%" PRIi64 "</int>", value);
|
||||
}
|
||||
|
||||
void trace_dump_uint(uint64_t value)
|
||||
|
|
@ -465,7 +465,7 @@ void trace_dump_uint(uint64_t value)
|
|||
if (!dumping)
|
||||
return;
|
||||
|
||||
trace_dump_writef("<uint>" PRIu64 "</uint>", value);
|
||||
trace_dump_writef("<uint>%" PRIu64 "</uint>", value);
|
||||
}
|
||||
|
||||
void trace_dump_float(double value)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue