[CRIU] [PATCH] log: pr_warn_once -- Fix formatting
Andrey Vagin
avagin at virtuozzo.com
Mon Feb 19 20:55:09 MSK 2018
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?
>
> #define pr_debug(fmt, ...) \
> print_on_level(LOG_DEBUG, \
> --
> 2.14.3
>
More information about the CRIU
mailing list