diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-20 20:24:03 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-24 12:36:03 +0200 |
commit | dbac88a8397fefa3be840f006c09ca995b0008bb (patch) | |
tree | fba301aef38c335f72457ae787734ae3b377d82a /src/gallium/drivers/radeonsi | |
parent | d46a9db840b8f82c079a6610723e8a6c519c46cd (diff) |
radeonsi: report a failure to parse dmesg instead of asserting
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index f3bcae94cdc..112e68684f3 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -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; |