mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
radeonsi: report a failure to parse dmesg instead of asserting
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
d46a9db840
commit
dbac88a839
1 changed files with 6 additions and 1 deletions
|
|
@ -730,7 +730,12 @@ static bool si_vm_fault_occured(struct si_context *sctx, uint32_t *out_addr)
|
|||
|
||||
/* Get the timestamp. */
|
||||
if (sscanf(line, "[%u.%u]", &sec, &usec) != 2) {
|
||||
assert(0);
|
||||
static bool hit = false;
|
||||
if (!hit) {
|
||||
fprintf(stderr, "%s: failed to parse line '%s'\n",
|
||||
__func__, line);
|
||||
hit = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
timestamp = sec * 1000000llu + usec;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue