Skip to contentSkip to conversation

superfluous "got a timer mode" message?

PATCH In review Andre Przywara 3 participants 4 messages Jul 20, 2012 – Jul 23, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

while starting some guests I saw this on my terminal:

got a timer mode string: "no_missed_ticks_pending"

I suppose this is a debug leftover? At least we may want to somehow log this instead of doing "fprintf(stderr" and scare the user?

I actually changed my config file from timer_mode=2 to this one to get rid of the warning, now I only got a new "warning" in return...

Replacing fprintf with LOG didn't help, so I leave it to you to do a proper fix ;-)

Regards,
Andre

Signature · 2 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
#1 lore raw

PATCH 1/1 xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)

Quoted 7 lines · Andre Przywara

Hi,

while starting some guests I saw this on my terminal:

got a timer mode string: "no_missed_ticks_pending"

I suppose this is a debug leftover?

Indeed, lets remove it.

8<--------------------------

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1342776718 -3600
# Node ID 27860c8b0968414787b4f077b8e1a21c9d85d5c2 # Parent f3ad5f33c34a5e981d9ffd56f112b96a86e36109
xl: remove stray timer mode debug print

tools/libxl/xl_cmdimpl.c +0 -1
diff -r f3ad5f33c34a -r 27860c8b0968 tools/libxl/xl_cmdimpl.c
@@ -836,7 +836,6 @@ static void parse_config_data(const char
             }
             b_info->u.hvm.timer_mode = l;
         } else if (!xlu_cfg_get_string(config, "timer_mode", &buf, 0)) {
-            fprintf(stderr, "got a timer mode string: \"%s\"\n", buf);
             if (libxl_timer_mode_from_string(buf, &b_info->u.hvm.timer_mode)) {
                 fprintf(stderr, "ERROR: invalid value \"%s\" for \"timer_mode\"\n",
                         buf);
Applied
#3 lore raw

Re: [PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)

Quoted 7 lines · Ian Jackson

Ian Campbell writes ("[PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)"):

Quoted 4 lines

xl: remove stray timer mode debug print

Thanks, applied.