[CRIU] [PATCH 8/8] criu: Add loglevel mappings for libsoccr

Cyrill Gorcunov gorcunov at gmail.com
Wed Nov 1 16:55:22 MSK 2017


On Wed, Nov 01, 2017 at 01:45:15PM +0000, Dmitry Safonov wrote:
> 2017-11-01 13:19 GMT+00:00 Cyrill Gorcunov <gorcunov at openvz.org>:
> > Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> > ---
> >  criu/crtools.c | 12 +++++++++++-
> >  1 file changed, 11 insertions(+), 1 deletion(-)
> >
> > diff --git a/criu/crtools.c b/criu/crtools.c
> > index b4cdf903814b..9f9a69fa6ed9 100644
> > --- a/criu/crtools.c
> > +++ b/criu/crtools.c
> > @@ -416,6 +416,11 @@ int main(int argc, char *argv[], char *envp[])
> >         int log_level = DEFAULT_LOGLEVEL;
> >         char *imgs_dir = ".";
> >
> > +       unsigned int libsoccr_log_level_map[] = {
> > +               [SOCCR_LOG_ERR] = LOG_DEBUG,
> > +               [SOCCR_LOG_DBG] = LOG_ERROR,
> 
> On the first sight, something looks wrong here ;-)

A typo of course ;) Just fix it on merge to not resend.

[SOCCR_LOG_DBG] = LOG_DEBUG
[SOCCR_LOG_ERR] = LOG_ERROR


More information about the CRIU mailing list