Module: Mesa
Branch: master
Commit: 9ec00c23c2c6fbe58b0d18f860ff8018a7b711ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9ec00c23c2c6fbe58b0d18f860ff8018a7b711ae

Author: Marek Olšák <[email protected]>
Date:   Fri Apr 29 22:27:09 2016 +0200

radeonsi: when parsing dmesg, skip empty lines

Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>

---

 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 eb0cabb..3ddabab 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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to