aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-04-29 22:27:09 +0200
committerMarek Olšák <[email protected]>2016-05-02 22:49:25 +0200
commit9ec00c23c2c6fbe58b0d18f860ff8018a7b711ae (patch)
tree52060a13cd77205f79b423e19c1169fe4f6ba0ab /src
parent9983efca769c1ade44c04275e31c7056d6ae2abd (diff)
radeonsi: when parsing dmesg, skip empty lines
Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_debug.c3
1 files changed, 3 insertions, 0 deletions
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);