[Mesa-dev] [PATCH 1/4] radeonsi: when parsing dmesg, skip empty lines
Nicolai Hähnle
nhaehnle at gmail.com
Mon May 2 16:16:21 UTC 2016
For the series:
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
On 01.05.2016 08:35, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> ---
> 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);
>
More information about the mesa-dev
mailing list