Re: [PATCH] lpd: write debug messages to stdout with compile-time or run-time flags

Mauricio Faria de Oliveira <[email protected]> Wed, 9 Nov 2016 10:47:24 -0200
Newsgroups gmane.linux.tools.diag.devel
Message-ID <[email protected]>
Hi Vasant,

On 11/09/2016 09:01 AM, Vasant Hegde wrote:
> So we have new build warning and I don't like that. Can you please fix
> below warning and resend entire patchset ?

I see; that only showed up previously with CFLAGS=3D'-DLPD_DEBUG' in use,
but this code enabled that code by default, so it's triggered now.

Submitting a v2 for this, and re-submitting the other patches as v3.

> CC lpd/files.o
> files.c: In function =91_dbg=92:
> files.c:180:18: warning: format not a string literal and no format
> arguments [-Wformat-security]
>   fprintf(stdout, buf);
>                   ^

Thanks!

-- =

Mauricio Faria de Oliveira
IBM Linux Technology Center


---------------------------------------------------------------------------=
---
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi