Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5164878yba; Mon, 13 May 2019 06:30:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkOh1ESYqmRFOsVfpqPnUJZXvLA7pL9Ydk7y30+S6nas8HZETbkwD2G3qCWFlIKYyZT5gm X-Received: by 2002:a63:3182:: with SMTP id x124mr30300201pgx.364.1557754246802; Mon, 13 May 2019 06:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557754246; cv=none; d=google.com; s=arc-20160816; b=SmK0mzPdz23OfOstxo923XMP9Gi1DIjbkQnuZGRrc8gNtIgAWoMkcRlW6xrauinL4R g2LOXx6wsY36a6FwhE1lcOSaiSQE0Gl8aHpVu/9DbypvlhyTw/iF9SphDdErtQRoR0vl 57pB+2QUudThjNKN5j5ke1rpq8BEwEYq/IBBajQQqIgp32fe5YKVOnrCIw0lUu9qW1Fn drNYa+r6vtyBl3ln4KE8v5SahD5WkTgSIzc0ZDEui3tbiOlJ8Ko+agAzaPMNEB6AzuNR ycgKaSUKbXnSvc/7MHdi9PbxFB54eHDIlyiL0MfSaE4fcaB8xHOjTqbNri6ibShSV6Gd YKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=uDjgjaO5JA6AL4r2k/W+mqNXP8dGfzOqoL/21R9aSFU=; b=LZ1uVoi42CRpDkO/q1mA+07UoQR30A4+PTU6kDKW23ciR6ZWj19kkyghQFaojuUcBk zBWSBabeBO91JS8NZVb3hm1RC03H6i2imdQXasopk+v/IhAZ09iLtww6aZwkj9+F/Z4y gNI50jZ3vZ7gv1K0aCt3tyosIVz+TyyJp4Mvn2R4HVjjjKKqBCyGhge30juIiCL9SmdU HcMSdtTm4D4RftU4BEHtYuPG4NceDg5jHgwY2zgrd8aMgeE2UXeaCAXhVHc9YSqXh+7X rav4VzgZEsxIG+BEQYnrAeHiZHcgm4d1yWzrBfDrK1S5STnRVzHuCCOZt21gzfLsSt6K 7e0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a82si16507730pfj.255.2019.05.13.06.30.29; Mon, 13 May 2019 06:30:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729484AbfEMLg7 (ORCPT + 99 others); Mon, 13 May 2019 07:36:59 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:18671 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729477AbfEMLg5 (ORCPT ); Mon, 13 May 2019 07:36:57 -0400 X-IronPort-AV: E=Sophos;i="5.60,465,1549926000"; d="scan'208";a="382892366" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 13:36:56 +0200 Date: Mon, 13 May 2019 13:36:52 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Gilles Muller , Masahiro Yamada , Michal Marek , Nicolas Palix , Wen Yang , cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, Yi Wang Subject: Re: [1/5] Coccinelle: put_device: Adjust a message construction In-Reply-To: <97f32bc1-f7ff-5777-21b5-5c4f85bb7276@web.de> Message-ID: References: <1553321671-27749-1-git-send-email-wen.yang99@zte.com.cn> <308f5571-68f3-7505-d5ad-59ee68091959@web.de> <97f32bc1-f7ff-5777-21b5-5c4f85bb7276@web.de> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 May 2019, Markus Elfring wrote: > >> Thus simplify a message construction in a SmPL rule by concatenating text > >> with two plus operators less. > > > > Is there any way to unindent, so that the string doesn't exceed 80 characters, > > or at least no so much? > > How does your concern fit to the string literal tolerance from > the Linux coding style? The point of view of the Linux kernel is that if there is no nicer way to persent the string, exceeding 80 characters is preferable to breaking the string. But here, at least if Python was not indentation sensitive, there are much nicer ways to present the string and not exceed 80 characters. > > On the other hand, I would have much preferred the original msg = code. > > I don't understand why it is so offensive. > > I suggested again to avoid the use of extra variables in such cases > (also in the discussed bit of Python source code within a SmPL script). I realize that you don't like it, although I have no idea why. Does it make the code slower? Less reliable? Less readable? I doubt any of those things. I think that staying within 80 characters would be a much greater benefit that all of these baseless concerns. julia > > Regards, > Markus >