Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3236685ybz; Mon, 27 Apr 2020 12:25:30 -0700 (PDT) X-Google-Smtp-Source: APiQypKvMdd94v1tAna+bbd8TRPmy+Oz4wDPA0L34C6VVfNMZn3yY4Nr/aBAvnXjad20KdSgzjBG X-Received: by 2002:a17:906:b2c4:: with SMTP id cf4mr22040934ejb.340.1588015530129; Mon, 27 Apr 2020 12:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588015530; cv=none; d=google.com; s=arc-20160816; b=hwzFFs8KLUN1ZHKwl0ibF9f9bYTwKIjUOiBmCPVS55G0MAoa/W/rg9kn5plplMf5Ar ev5Jmvtz518VNT8VfY7JqlqZn7jPgh8ts2/bkLedEQQf4iuT2DT2eKna+TEdBG3FBkat Awy4e4Jagv1c+gaDCIp3oNJ8oLYYOYovyy85pYFoPMQhDphDT9jQeMy94zcX19qBnpcD ougmcMh8e8yvz/rXpEKzTpUNYnXwaTtT2UKWSnJaqb4Hvio79sAvHzIMvHuKE5hv5OCl rnvM/PaiQir2V3JK8XAduUtsPqsbcMfCWtiNnnXnq6huY7mQJvmkoMJ270eYgIfID/gD /IsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=9ErZW5HKmbsaW38EHGAsm551QIdv61VhgSlT9aiI9ek=; b=VU4iP4LQcZ7I9ghU5x/xEokNp9GXkBRRnKzLH+661i9HBadBy8ArdTkQPFDRD1ujF1 q+Su75ivC/kBYf6sN3OcpYEOMY7ANapzSvvm/Q9knbz9cNToC2xMgOPCC/U5s0cHj6gd IZGLNsueLiAV0/MKBNXKSwtVBOfUDGhkNMkOMQMoqSnwJJpD4eBxb1JwUjwF0Rgq1C46 VEg6wkADjcd9jDyMayejPYkU1tE98c1ZodOJ6uXEwjC68XdmghP6h2wevNXLLUoVNyNz zxu53jq8+tu2TEQPYVktEe4C1NXEuEFsLB2I1yj02R7Ezee7DLqbOzTyE1iZP3iP0jj6 +Yqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si290102ejb.514.2020.04.27.12.25.06; Mon, 27 Apr 2020 12:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbgD0TVH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 27 Apr 2020 15:21:07 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:30599 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbgD0TVH (ORCPT ); Mon, 27 Apr 2020 15:21:07 -0400 X-Originating-IP: 91.224.148.103 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 276A0240003; Mon, 27 Apr 2020 19:21:03 +0000 (UTC) Date: Mon, 27 Apr 2020 21:21:02 +0200 From: Miquel Raynal To: Joe Perches Cc: "Gustavo A. R. Silva" , linux-kernel@vger.kernel.org, Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org Subject: Re: [PATCH 2/3] mtd: lpddr: Replace printk with pr_notice Message-ID: <20200427212102.2de1105a@xps13> In-Reply-To: References: <67c4b34d-019d-e4c9-ebd2-3a8477470048@embeddedor.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, Joe Perches wrote on Mon, 27 Apr 2020 12:15:02 -0700: > On Mon, 2020-04-27 at 14:10 -0500, Gustavo A. R. Silva wrote: > > > > On 4/27/20 14:01, Joe Perches wrote: > > > On Mon, 2020-04-27 at 14:03 -0500, Gustavo A. R. Silva wrote: > > > > pr_notice is preferred over printk. > > > > > > So is coalescing formats > > > > > > ? diff --git a/include/linux/mtd/pfow.h b/include/linux/mtd/pfow.h > > > [] > > > > @@ -127,31 +127,31 @@ static inline void print_drs_error(unsigned dsr) > > > > int prog_status = (dsr & DSR_RPS) >> 8; > > > > > > > > if (!(dsr & DSR_AVAILABLE)) > > > > - printk(KERN_NOTICE"DSR.15: (0) Device not Available\n"); > > > > + pr_notice("DSR.15: (0) Device not Available\n"); > > > > if ((prog_status & 0x03) == 0x03) > > > > - printk(KERN_NOTICE"DSR.9,8: (11) Attempt to program invalid " > > > > + pr_notice("DSR.9,8: (11) Attempt to program invalid " > > > > "half with 41h command\n"); > > > > > > pr_notice("DSR.9,8: (11) Attempt to program invalid half with 41h command\n"); > > > > > > > I didn't want to mess with the rest of format, because some maintainers > > don't like that. If Miquel is OK with that, I can fix that up, too. > > He should. Coalescing is part of coding-style. > > "never break user-visible strings such as printk messages" > > cheers, Joe > I suppose Gustavo meant that there are maintainers in the community (and I am part of it) that do not like when people fix style issues aside their own changes -specifically without writing it in commit logs. But in this situation I think s/printk(KEN_NOTICE/pr_notice(/ needs the second line to be re-aligned with the first one. While touching it, it seems reasonable to also fix this style issue and avoid keeping broken strings. Thanks, Miquèl