Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp874078pxu; Wed, 6 Jan 2021 06:46:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUIe6CeywxPCTD7h4266smIv1odD7n4uq3iy9XJrk+iuj3ElLzsv5B17iFDDTZGWBHmogh X-Received: by 2002:a17:906:c00c:: with SMTP id e12mr3010183ejz.103.1609944375680; Wed, 06 Jan 2021 06:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609944375; cv=none; d=google.com; s=arc-20160816; b=JJ4SVY/m+bjILEwA2VF45v2r0VEDwFnS3k15lEp5dJuOYqwuSBH1KKzhbIdZCW7/vv FWpb/Xe0q8ILFvaxtivxmoLJLXlabHFtdyy6JKOedBgwyAnmmAMzloB3STvK8A0QppHF hSeGkit320Qq8ye7YeVRxfbdx6iuaUKrjI6TEfVxanCybIfFMFxm0TK48hdrJaqAGuaJ hQLtGLxyBpizqj82j+PK15xNbKPjs8yIbixSfYPG/19qhceeocyuebc+ijZoCKDqUajm 9OQteX5/cga2UmkcTTaoOmx0KuhLzqvFUZ3gqVmHsMAlCtg211XT60hsg6d/rJ2/M0ud AXrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=zZFVapAOqPtMKuRlS2IClH2W+EeI5EmN79hr+V6Ehzg=; b=G3vYNBkUfisq1C7Ajli9KZjaWUOIBNeApZKbZZ+diROjRYLeidkIUANaCIuFAng4Ru aGYkQOuRN+x2Q63muToGu/F6RqqXGiCTQpFEetsptFucoqjzpT24uS+9cw5zeC3fcO3Z sGhd0sbROEOCiOOh2p3hy2xfQGV61ERhsYrNWz2FMsTcRFGaAWfo9c+jwQZHdC60sLq3 Ny097QNFJCXxp8IGqrtQ0z/d6nlvO7LQWg5MRTsnAhqteX984TeI1lCFJRQ347BXiFwG /lEZWOwZV3cm3eH7fm0gru0PliZrDb4F5E+SOqVkr9FRQhvea6lVLzQ87v3WiOET1CHQ RGuA== 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 hr6si1014023ejc.319.2021.01.06.06.45.51; Wed, 06 Jan 2021 06:46:15 -0800 (PST) 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 S1726824AbhAFOoN (ORCPT + 99 others); Wed, 6 Jan 2021 09:44:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:40278 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbhAFOoH (ORCPT ); Wed, 6 Jan 2021 09:44:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9FC51ACAF; Wed, 6 Jan 2021 14:43:25 +0000 (UTC) Date: Wed, 6 Jan 2021 15:43:24 +0100 From: Jean Delvare To: Wolfram Sang Cc: trix@redhat.com, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: remove h from printk format specifier Message-ID: <20210106154324.78e005da@endymion> In-Reply-To: <20210105100942.GC2000@ninjato> References: <20201215183327.2072052-1-trix@redhat.com> <20210105100942.GC2000@ninjato> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, Wolfram, On Tue, 5 Jan 2021 11:09:42 +0100, Wolfram Sang wrote: > On Tue, Dec 15, 2020 at 10:33:27AM -0800, trix@redhat.com wrote: > > From: Tom Rix > > > > See Documentation/core-api/printk-formats.rst. > > h should no longer be used in the format specifier for printk. > > > > Signed-off-by: Tom Rix > > Adding Jean to CC. Jean, I'd think %02x would be better, what do you > think? Agreed, 0x%02x would be better. If this is done then you can add: Reviewed-by: Jean Delvare > > --- > > drivers/i2c/i2c-smbus.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/i2c/i2c-smbus.c b/drivers/i2c/i2c-smbus.c > > index d3d06e3b4f3b..5cd2cf84659e 100644 > > --- a/drivers/i2c/i2c-smbus.c > > +++ b/drivers/i2c/i2c-smbus.c > > @@ -396,7 +396,7 @@ void i2c_register_spd(struct i2c_adapter *adap) > > > > if (!IS_ERR(i2c_new_scanned_device(adap, &info, addr_list, NULL))) { > > dev_info(&adap->dev, > > - "Successfully instantiated SPD at 0x%hx\n", > > + "Successfully instantiated SPD at 0x%x\n", > > addr_list[0]); > > dimm_count--; > > } -- Jean Delvare SUSE L3 Support