projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9983efc
)
radeonsi: when parsing dmesg, skip empty lines
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 29 Apr 2016 20:27:09 +0000
(22:27 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 2 May 2016 20:49:25 +0000
(22:49 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_debug.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_debug.c
b/src/gallium/drivers/radeonsi/si_debug.c
index eb0cabb9f2f461bf85627277fcc0ff7e872ee939..3ddababdde2c534c447f93ff4c482a747844e337 100644
(file)
--- 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);