Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6685186rdb; Fri, 15 Dec 2023 05:52:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IE1MDNsy8nTT3336BLM+Ic1v/R+JwDCgbowm1kFJaFMnqsTyRkYNWD1sq1KU2Id0CYnWzFR X-Received: by 2002:a05:620a:10b8:b0:77f:13c8:6a1d with SMTP id h24-20020a05620a10b800b0077f13c86a1dmr11978373qkk.67.1702648374705; Fri, 15 Dec 2023 05:52:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702648374; cv=none; d=google.com; s=arc-20160816; b=ImnyWCZy4WHVQNPOnhhYs/2lPoeiHzwksYzbIBlmihImsch7LUKT6j7tJdo6G7PMNm bVe84dUCTadfIMyEPRgY2vZsMI8vbh4Qkzc+5BMK0aGkcWkzkLZPzaJN23gEJuNEmeZE n4/e1Ovph5lw463Vdf9ciKzed8wECfK+PxLl8pXK/EfFr4FxDDDQ9umUA/bfe3T4lG1s tjAhi8hcd3wuOdl0QCYhd11bKTiBBdJnBoLwN7bynnwWBoNDH1k+Z6jDH6028oRQECzN diPHjmcOqN6miyvADAHdAAuEbNIA1Jw6bQmTVd1xZ9ea2x3qUJuIe9ZL4PRd36/NqI3J SNTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=0ZGNz+ppDCwwhw54P/lRGZ8DUsV7QPU9qhno824CJbQ=; fh=LrzVOhTAwD+cBo9TSquPJyeKSNG6LE3kkUXvC2SIuio=; b=ve/asnHJElTTKUZ+1wjAr6C56J8C2Vm8PT7CpTtE22YN9W+04EpYNlqn/IjIlJ+mPD uEJ6Y8GssZMyBprnPncLbbktw5guH/3Lkn9rYhR+ncd9D4KWaOLSFmuxB8C7+SGSHrzh eV6HgJgyJi28Yog/qpzzQ4AuL0uwwVh/3fG6hO3L+cxV+2rsuCUMBpTRrNuG6g7lBaDk GEs44YSpRPIlDi50b7HP19M3USpoErAgKs3fk8kAi5AHSEo4cRDmlciW5g5YPpLHmrKe isnz2yZD3EHHcBetGBhgijMXcpaz9KNjSvTq04XwmcAg9PirhMn4D2FX1owR5HXkxzx2 DKlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1044-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u29-20020a05620a085d00b0077f970e9ae6si463977qku.70.2023.12.15.05.52.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:52:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1044-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6BC6F1C23C53 for ; Fri, 15 Dec 2023 13:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5613D2E634; Fri, 15 Dec 2023 13:52:44 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 795D83032A; Fri, 15 Dec 2023 13:52:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ghiti.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ghiti.fr Received: by mail.gandi.net (Postfix) with ESMTPSA id B162F1C0004; Fri, 15 Dec 2023 13:52:33 +0000 (UTC) Message-ID: Date: Fri, 15 Dec 2023 14:52:33 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/5] tools: selftests: riscv: Fix compile warnings in hwprobe Content-Language: en-US To: Christoph Muellner , linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Paul Walmsley , Albert Ou , Shuah Khan Cc: Philipp Tomsich , Andrew Jones , Evan Green , Xiao Wang , Alexandre Ghiti , Andy Chiu , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Charlie Jenkins References: <20231123185821.2272504-1-christoph.muellner@vrull.eu> <20231123185821.2272504-2-christoph.muellner@vrull.eu> From: Alexandre Ghiti In-Reply-To: <20231123185821.2272504-2-christoph.muellner@vrull.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: alex@ghiti.fr On 23/11/2023 19:58, Christoph Muellner wrote: > From: Christoph Müllner > > GCC prints a couple of format string warnings when compiling > the hwprobe test. Let's follow the recommendation in > Documentation/printk-formats.txt to fix these warnings. > > Signed-off-by: Christoph Müllner > --- > tools/testing/selftests/riscv/hwprobe/hwprobe.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/riscv/hwprobe/hwprobe.c b/tools/testing/selftests/riscv/hwprobe/hwprobe.c > index c474891df307..abb825811c70 100644 > --- a/tools/testing/selftests/riscv/hwprobe/hwprobe.c > +++ b/tools/testing/selftests/riscv/hwprobe/hwprobe.c > @@ -29,7 +29,7 @@ int main(int argc, char **argv) > /* Fail if the kernel claims not to recognize a base key. */ > if ((i < 4) && (pairs[i].key != i)) > ksft_exit_fail_msg("Failed to recognize base key: key != i, " > - "key=%ld, i=%ld\n", pairs[i].key, i); > + "key=%lld, i=%ld\n", pairs[i].key, i); > > if (pairs[i].key != RISCV_HWPROBE_KEY_BASE_BEHAVIOR) > continue; > @@ -37,7 +37,7 @@ int main(int argc, char **argv) > if (pairs[i].value & RISCV_HWPROBE_BASE_BEHAVIOR_IMA) > continue; > > - ksft_exit_fail_msg("Unexpected pair: (%ld, %ld)\n", pairs[i].key, pairs[i].value); > + ksft_exit_fail_msg("Unexpected pair: (%lld, %llu)\n", pairs[i].key, pairs[i].value); > } > > out = riscv_hwprobe(pairs, 8, 0, 0, 0); You can add: Reviewed-by: Alexandre Ghiti Thanks! Alex