Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6679122rdb; Fri, 15 Dec 2023 05:41:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWfHQ5ILtovu5TLi1iz1n32R8e+DL1Jh6PKAV8JagGPSphVF5yBTYmDqD4wZpWjHLkAxEp X-Received: by 2002:a05:6122:4b05:b0:4b2:d188:2255 with SMTP id fc5-20020a0561224b0500b004b2d1882255mr10176570vkb.22.1702647697822; Fri, 15 Dec 2023 05:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702647697; cv=none; d=google.com; s=arc-20160816; b=PgQnqI85V6YmRtWt2bXx4Y0aTc2mJSI0CXYkbLsx/mF0xFUGurhCDHPOSy4v1smQUK Dh7Yt0PBezyuPPj82hi9hsA6d0AEBpEnfXUNAxUUzLJS4zgJrw0suaMAmR1ywEWvPRHQ yGfsXNEqXze2Eda7V9BABKaSLLyu/Q2Ib+whFR5Lesld394FNKTzxrDAjMHfudapz2Bz 5v45UGavNUfsg68/Xgyh1MRGOZrXjfbH19qFmmZ3vcwPtIGrHliZvfd9IDmYgaVpVrEH 8jJRGCoYGGKqAShA7YX8Ru6YSrZd/EOVitfKHd/pmihdwgI0SpZVDpvlwKHrRSEkqNAC IHSQ== 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=c+z4uyK4VNqLeeomqaJAmGZgOj1kfiN2deOdB5H2eDs=; fh=LrzVOhTAwD+cBo9TSquPJyeKSNG6LE3kkUXvC2SIuio=; b=BIo5kYO6/boK4k2HYQETqxrXs5+vadZkcXfmSqpn3PMSLzkN4TJOh79muzG1KED8Zn iOP4PKrDDSQZS8t8xq86yPBjTMicOidZ9396HJZxXWuulEvLhvAlz7OztJ4m67dvzFIz 710x5mGJPKL8h9un1ClFve86mv6lRfD8KC2pyutmGzvn32pL7LOrP6wWyjeTTeUNAPAT 18qmmnnSe9bgcmP1XI5RIrP5ceWAGFvBRgBJ+pGkY7lNbO2PQ5kYtW7jLLJpX1yNN3Dd 8fCNbhxQCpHocCQGKuIobgc/jhcLHMzItGN2+W/sOC1ESrV8SOd4rvCeOvAxg6OmHMdu bQ9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k14-20020a056122210e00b004b2ef8e5078si3570993vkd.206.2023.12.15.05.41.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 05:41:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-1030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1030-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 883951C23C8D for ; Fri, 15 Dec 2023 13:41:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C9352DF96; Fri, 15 Dec 2023 13:41:26 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 97BC92E650; Fri, 15 Dec 2023 13:41:22 +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 3B03760005; Fri, 15 Dec 2023 13:41:17 +0000 (UTC) Message-ID: Date: Fri, 15 Dec 2023 14:41:16 +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