mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
radeonsi: when parsing dmesg, skip empty lines
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
9983efca76
commit
9ec00c23c2
1 changed files with 3 additions and 0 deletions
|
|
@ -697,6 +697,9 @@ static bool si_vm_fault_occured(struct si_context *sctx, uint32_t *out_addr)
|
|||
while (fgets(line, sizeof(line), p)) {
|
||||
char *msg, len;
|
||||
|
||||
if (!line[0] || line[0] == '\n')
|
||||
continue;
|
||||
|
||||
/* Get the timestamp. */
|
||||
if (sscanf(line, "[%u.%u]", &sec, &usec) != 2) {
|
||||
assert(0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue