From: julia.lawall@lip6.fr (Julia Lawall) Date: Fri, 14 Oct 2016 15:36:25 +0200 (CEST) Subject: [Cocci] Replacing calls of general functions by more specific ones with SmPL In-Reply-To: <27a3d843-2380-eef6-85c9-f60158eba5b6@users.sourceforge.net> References: <8c2c37de-baee-8282-b5cc-ad6eea3bb66f@users.sourceforge.net> <2d2a0414-0e23-790b-e99c-0220ffda2b35@users.sourceforge.net> <27a3d843-2380-eef6-85c9-f60158eba5b6@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Fri, 14 Oct 2016, SF Markus Elfring wrote: > > But that should be fine for detecting eg if a string has only one character. > > Did you come along similar change possibilities at other places already? > > http://lxr.free-electrons.com/source/include/linux/seq_file.h?v=4.8#L114 > > ?????????????????????????????????????????????????????? > ? update candidate ? 1. replacement ? 2. replacement ? > ?????????????????????????????????????????????????????? > ? seq_printf ? seq_puts ? seq_putc ? > ?????????????????????????????????????????????????????? > > > Would it make sense to consider any more source code search patterns here? I'm not familiar with the details of this issue. julia