From mboxrd@z Thu Jan 1 00:00:00 1970 From: julia.lawall@lip6.fr (Julia Lawall) Date: Tue, 31 Jul 2018 21:18:43 +0200 (CEST) Subject: [Cocci] Removing trailing whitespace at the end of changes lines? In-Reply-To: References: Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Mon, 30 Jul 2018, Timur Tabi wrote: > I've noticed that some lines changed with my cocci script have a > trailing whitespace at the end of the first line. For example: > > - DBG_PRINTF((DBG_MODULE_GLOBAL, DBG_LEVEL_ERRORS, > - "NVRM: %s: failed to save GPU crash data\n", > - __FUNCTION__)); > + NV_PRINTF(LEVEL_ERROR, > + "%s: failed to save GPU crash data\n", __FUNCTION__); > > There is a blank space after "LEVEL_ERROR,". I've attached my cocci > script, but considering that coccinelle seems to reformat lines after > they've been modified, > I suspect that the problem is not in my script per se. Could you send a .c file that produces the problem? I tried with the attached file but I don't get any trailing spaces. julia -------------- next part -------------- A non-text attachment was scrubbed... Name: nv_printf.c Type: text/x-csrc Size: 171 bytes Desc: URL: