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 -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany
Ian Campbell
2012-Jul-20 09:33 UTC
[PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)
On Fri, 2012-07-20 at 10:22 +0100, Andre Przywara wrote:> 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 <ian.campbell@citrix.com> # Date 1342776718 -3600 # Node ID 27860c8b0968414787b4f077b8e1a21c9d85d5c2 # Parent f3ad5f33c34a5e981d9ffd56f112b96a86e36109 xl: remove stray timer mode debug print Reported-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r f3ad5f33c34a -r 27860c8b0968 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Fri Jul 20 10:31:07 2012 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Jul 20 10:31:58 2012 +0100 @@ -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);
Ian Jackson
2012-Jul-20 11:03 UTC
Re: [PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)
Ian Campbell writes ("[PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)"):> xl: remove stray timer mode debug print > > Reported-by: Andre Przywara <andre.przywara@amd.com> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Campbell
2012-Jul-23 12:14 UTC
Re: [PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)
On Fri, 2012-07-20 at 12:03 +0100, Ian Jackson wrote:> Ian Campbell writes ("[PATCH] xl: remove stray timer mode debug print (Was: Re: superfluous "got a timer mode" message?)"): > > xl: remove stray timer mode debug print > > > > Reported-by: Andre Przywara <andre.przywara@amd.com> > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>Thanks, applied.