[Mesa-dev] [PATCH 2/2] loader: do not print the pci id on release builds

Emil Velikov emil.l.velikov at gmail.com
Tue Jan 28 02:29:03 PST 2014


Ignore this patch, I had it completely wrong. I'll send a proper
solution in a moment.

-Emil

On 23/01/14 18:03, Emil Velikov wrote:
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/loader/loader.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/loader/loader.c b/src/loader/loader.c
> index a5bd769..a6dc40c 100644
> --- a/src/loader/loader.c
> +++ b/src/loader/loader.c
> @@ -307,9 +307,11 @@ loader_get_driver_for_fd(int fd, unsigned driver_types)
>     }
>  
>  out:
> +#ifdef DEBUG
>     log_(driver ? _LOADER_INFO : _LOADER_WARNING,
>           "pci id for fd %d: %04x:%04x, driver %s",
>           fd, vendor_id, chip_id, driver);
> +#endif
>     return driver;
>  }
>  
> 



More information about the mesa-dev mailing list