From: Ian Jackson Subject: Re: [PATCH] xl: Change output from xl -N create to be more useful Date: Fri, 3 Jul 2015 12:31:14 +0100 Message-ID: <21910.29314.679455.196969@mariner.uk.xensource.com> References: <1435328955-19744-1-git-send-email-ian.jackson@eu.citrix.com> <1435922757.9447.92.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1435922757.9447.92.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Euan Harris , xen-devel@lists.xensource.com, Wei Liu List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH] xl: Change output from xl -N create to be more useful"): > On Fri, 2015-06-26 at 15:29 +0100, Ian Jackson wrote: ... > > - if (debug || dom_info->dryrun) > > - printf_info(default_output_format, -1, &d_config, > > - debug ? stderr : stdout); > > + if (debug || dom_info->dryrun) { > > + FILE *cfg_print_fh = debug ? stderr : stdout; > > Did you mean to use this instead of the hardcoded stdout below? > > Otherwise the debug output's location differs depending on the format, > which seems unexpected. This is indeed wrong. Well spotted. Ian.