From: Ian Campbell Subject: Re: [PATCH 1/2] tools: libxl: Remove unnecessary trailing \n from log messages. Date: Thu, 13 Aug 2015 11:32:23 +0100 Message-ID: <1439461943.23981.72.camel@citrix.com> References: <1439387762-14084-1-git-send-email-ian.campbell@citrix.com> <20150812164222.GZ7460@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150812164222.GZ7460@zion.uk.xensource.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: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2015-08-12 at 17:42 +0100, Wei Liu wrote: > On Wed, Aug 12, 2015 at 02:56:01PM +0100, Ian Campbell wrote: > > Both xl's LOG and the various libxl logging mechanisms automatically > > include a trailing \n. > > > > Remove all unnecessary \n's from the logs messages with the following > > semantic patch. > > > > spatch also reindents (I couldn't see how to make it stop). In general > > it has improved matters but in 1 case it has introduced a long line, > > this will be fixed in the next patch. > > > > Semantic patch, run as > > spatch --in-place --no-includes --include-headers \ > > --sp-file libxl-log-nl.spatch \ > > tools/libxl/libxl*.[ch] tools/libxl/xl*.[ch] > > Both patches: > > Release-acked-by: Wei Liu Applied, thanks.