[virglrenderer-devel] [PATCH 3/8] gles: fix the unsued ctx name variable.

Chih-Wei Huang cwhuang at android-x86.org
Mon May 21 08:33:25 UTC 2018


A typo in the subject: unsued -> unused

2018-05-21 11:07 GMT+08:00 Dave Airlie <airlied at gmail.com>:
> From: Dave Airlie <airlied at redhat.com>
>
> This looks like the right answer.
> ---
>  src/vrend_renderer.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
> index 5cba704..8d3a9c0 100644
> --- a/src/vrend_renderer.c
> +++ b/src/vrend_renderer.c
> @@ -528,7 +528,7 @@ static void __report_gles_warn(const char *fname, struct vrend_context *ctx, enu
>  {
>     int id = ctx ? ctx->ctx_id : -1;
>     const char *name = ctx ? ctx->debug_name : "NO_CONTEXT";
> -   fprintf(stderr,"%s: gles violation reported %d \"%s\" %s %d\n", fname, id, ctx->debug_name, vrend_gles_warn_strings[error], value);
> +   fprintf(stderr,"%s: gles violation reported %d \"%s\" %s %d\n", fname, id, name, vrend_gles_warn_strings[error], value);
>  }
>  #define report_gles_warn(ctx, error, value) __report_gles_warn(__func__, ctx, error, value)
>
> @@ -536,7 +536,7 @@ static void __report_gles_missing_func(const char *fname, struct vrend_context *
>  {
>     int id = ctx ? ctx->ctx_id : -1;
>     const char *name = ctx ? ctx->debug_name : "NO_CONTEXT";
> -   fprintf(stderr,"%s: gles violation reported %d \"%s\" %s is missing\n", fname, id, ctx->debug_name, missf);
> +   fprintf(stderr,"%s: gles violation reported %d \"%s\" %s is missing\n", fname, id, name, missf);
>  }
>  #define report_gles_missing_func(ctx, missf) __report_gles_missing_func(__func__, ctx, missf)
>
> --
> 2.14.3
>
> _______________________________________________
> virglrenderer-devel mailing list
> virglrenderer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel



-- 
Chih-Wei
Android-x86 project
http://www.android-x86.org


More information about the virglrenderer-devel mailing list