[CRIU] [PATCH] log: pr_warn_once -- Fix formatting
Cyrill Gorcunov
gorcunov at gmail.com
Mon Feb 19 21:08:20 MSK 2018
On Mon, Feb 19, 2018 at 09:55:09AM -0800, Andrey Vagin wrote:
> On Wed, Feb 14, 2018 at 12:29:47AM +0300, Cyrill Gorcunov wrote:
> > [This sender failed our fraud detection checks and may not be who they appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing]
> >
> > From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> >
> > Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> > ---
> > criu/include/log.h | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/criu/include/log.h b/criu/include/log.h
> > index f6b9ec28a..a77c606ca 100644
> > --- a/criu/include/log.h
> > +++ b/criu/include/log.h
> > @@ -63,7 +63,9 @@ extern void print_on_level(unsigned int loglevel, const char *format, ...)
> > __FILE__, __LINE__, ##__VA_ARGS__)
> >
> > #define pr_warn_once(fmt, ...) \
> > - print_once(LOG_WARN, fmt, ##__VA_ARGS__)
> > + print_once(LOG_WARN, \
> > + "Warn (%s:%d): " LOG_PREFIX fmt, \
> > + __FILE__, __LINE__, ##__VA_ARGS__)
>
> Should we do the same changes in ./compel/include/log.h?
Nope, compel already redirects to pr_warn
More information about the CRIU
mailing list