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:
Marek Olšák 2016-04-29 22:27:09 +02:00
parent 9983efca76
commit 9ec00c23c2

View file

@ -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);