From: Ian Jackson Subject: Re: [PATCH 1/2] tools: libxl: Remove unnecessary trailing \n from log messages. Date: Wed, 12 Aug 2015 16:13:26 +0100 Message-ID: <21963.25238.359143.175946@mariner.uk.xensource.com> References: <1439387762-14084-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1439387762-14084-1-git-send-email-ian.campbell@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: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH 1/2] tools: libxl: Remove unnecessary trailing \n from log messages."): > 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: Acked-by: Ian Jackson Ian.