Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp641690pxj; Fri, 14 May 2021 11:53:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgDFH+T6PilYC6llnizpEoIS7bfYxwUR/ZH4fXd1xIPeGcbGz9/P3NW5q67ZrWbbKJ4SYN X-Received: by 2002:a17:906:b885:: with SMTP id hb5mr3619070ejb.320.1621018431343; Fri, 14 May 2021 11:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621018431; cv=none; d=google.com; s=arc-20160816; b=YL7Rw9S84EoYstlgKGBjBXUipfbtYyQAEs5bM6gCM5XGN+HhtBC0S/hzsQYeq5ZMpF IZl5XZsLqcX96vyH9xlj1f8+LKxQ7rXVNtL9D+8vWtV0R12FHKyCsmweupBJEFzSdOCj JDdToJtsufHItWUxSSsgrrNi4geDDl0Uqo7ETfUioVOx8tvBCqnqcuEHRyMELGJ9nugE 2spEoya0DwRmPouLxC8PEiy35Cba9PXNGEzITFSpAGSv2PoTMVli3PNrQglzPehvR86E 4r40nXq1wRJvh7aVG94kBqDZjIS62ztPBN2k+TiNb/9yFEHhB/0z37xfBTTR6LV6yfL5 L6Mw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Am5wmS9xN887ks3+kiBd+/vj+pR72hq99ShNf/8lLa4=; b=tinffSHfozw7WvNNxDsH3CdpXiIdGKEhQGk9GA/byOEJnN1r/09FhjKknOxlOF0FCu UfZ7sbAgtuIH10HW3yFIb0rLRsk/Nb/DHX9l3CJ2BlLbY443A0tOGLLSyjxQvu4KGqji P5yhhghQbJY2G+sBzboROxWf3QD/WM5pRCun7bkokzAQF98/k6v7KvknDbkFfhFwTTo4 hOcALBHKDGTGeHNkn0bOMnZcg5DouaJrULjRbjFxdAYTrneRcf/A/MO5tYjyzafNqtbE YnerR4QoL9JwXjXIU0MIj7e2Qa8Ekfr5qybvTNv+x2pv+acFT3KfI+Lqo5Rg0ZfaqMZK MPQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsqUEHcD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si6944408ejq.725.2021.05.14.11.53.27; Fri, 14 May 2021 11:53:51 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VsqUEHcD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232103AbhENOBa (ORCPT + 99 others); Fri, 14 May 2021 10:01:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:59510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233677AbhENOB3 (ORCPT ); Fri, 14 May 2021 10:01:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AADBF6101A; Fri, 14 May 2021 14:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621000817; bh=7NB1FE8Uid9tyXKynlxvfUzhGWXyAQBzyCqed1gxhfk=; h=From:To:Cc:Subject:Date:From; b=VsqUEHcDbAAOq2f8moIYt11ziM2tUJr6Gdlw1A4T9yTEJnxY/ICUb0BIeCvky6dCT ZPLry+v2B6kI67x25Y0wYw9HbTKkPTw2ZKTwWl/GSfFiw2IiIwRos27NdlmwJuMHZx cZlKCAK6vpNdOOqN4aqwwc04z0tF+j1ohDXkRi74Xh2VbSEEU4O5rcj9WUImoMcsjD r1BczSwvYgy67LruE2Iwe5V5djN4T+8PJJl2BNuxkfHXeVHrImyXOsbCEX3KFyXHab ddq5btrWlS1mlXvPpp4oJPIQmCDrKwRXnZThGyGpkAS7NW4F7uNj9rnDvbZJkgeOJq 2duQHEynK4CDg== From: Arnd Bergmann To: Jonathan Cameron , Nathan Chancellor , Nick Desaulniers , =?UTF-8?q?Maxime=20Roussin-B=C3=A9langer?= , Jean-Francois Dagenais Cc: Arnd Bergmann , Lars-Peter Clausen , Alexandru Ardelean , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: [PATCH] iio: si1133: fix format string warnings Date: Fri, 14 May 2021 15:59:21 +0200 Message-Id: <20210514135927.2926482-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann clang complains about multiple instances of printing an integer using the %hhx format string: drivers/iio/light/si1133.c:982:4: error: format specifies type 'unsigned char' but the argument has type 'unsigned int' [-Werror,-Wformat] part_id, rev_id, mfr_id); ^~~~~~~ Print them as a normal integer instead, leaving the "#02" length modifier. Fixes: e01e7eaf37d8 ("iio: light: introduce si1133") Signed-off-by: Arnd Bergmann --- drivers/iio/light/si1133.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/si1133.c b/drivers/iio/light/si1133.c index c280b4195003..fd302480262b 100644 --- a/drivers/iio/light/si1133.c +++ b/drivers/iio/light/si1133.c @@ -978,11 +978,11 @@ static int si1133_validate_ids(struct iio_dev *iio_dev) return err; dev_info(&iio_dev->dev, - "Device ID part %#02hhx rev %#02hhx mfr %#02hhx\n", + "Device ID part %#02x rev %#02x mfr %#02x\n", part_id, rev_id, mfr_id); if (part_id != SI1133_PART_ID) { dev_err(&iio_dev->dev, - "Part ID mismatch got %#02hhx, expected %#02x\n", + "Part ID mismatch got %#02x, expected %#02x\n", part_id, SI1133_PART_ID); return -ENODEV; } -- 2.29.2