From 9ec00c23c2c6fbe58b0d18f860ff8018a7b711ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 29 Apr 2016 22:27:09 +0200 Subject: [PATCH] radeonsi: when parsing dmesg, skip empty lines MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_debug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index eb0cabb9f2f..3ddababdde2 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -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); -- 2.30.2