Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1226344rdh; Fri, 24 Nov 2023 07:45:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJcLfwPhGfjHjm7+phEUzt1y5P/mwPMdX7ceBO6utIZ7bq4Zh+DMDW4vXa/zsRzVH2uwJG X-Received: by 2002:a17:90b:30cb:b0:27d:3f0c:f087 with SMTP id hi11-20020a17090b30cb00b0027d3f0cf087mr3594041pjb.25.1700840708965; Fri, 24 Nov 2023 07:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700840708; cv=none; d=google.com; s=arc-20160816; b=Xjwy5Z3AXN1UHOgHWVBKVGx9EwtSc45uPAtVV3RdLafzVLu+Kj4LXgu+y9lhSb7ctU C/tZnx751GMmWYLK0R3bht5i0Oqhb3KZ3TJWes0jLtQf/trecCejupzzeDLvZszd8jS0 sZ7pzrl3g75v+4403oCHLgMC04S9u5ey2Cqg7TwhDGFoUgsgEsGY2Vfig3grhTS+0R+M N/8g8CO3X6fqiLH+UHIjnD2E26lVTap5xzILfn57AUHI1xVQEuCohtdmBSwwnMhCKCWc p0fxopEziK5Yb9rj7VflDQXR7l5+UFoj914tdU2pZEFDmY/LwWnx+kyfqoverzZKv8aT VyFg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dhz1HO1TFrn+esU2JyrDQXLuWyA0tprcaBHDYdqjcxQ=; fh=/eO5nk+0DJTE9DN9tCVbd3UjUSmw806IPGhK6G20PBw=; b=NcTa/VCU1xcOvCGm5qAIx/WawOvRDUlN4/38E2NYjOMys0iDFKvlCEQkc+aW/ouB1s dk4oE3W0zbOuYwI0wKtU/y4gygYWeW+y1TOI/N33Horz8etCnlU5D6ZS2+cXClXw/PrC AMflwLqaTyMNC5IwN2PQEuTno5uTU245srTTJJ6QTq82gv9j9co0oVKAZz4YZGT4642C OqJG4H/iawV/wnX2RCSzoK/SGyrMLPdV1xJfHbmgeMx4DS9mtpsfxc2cEBJb8LjVJw8X en5lwZoPosFoQVMyFIcoImQabz29VchglXl+CqhflzatTLhVfyYB4hkvpsv7KKKc2PgM +NRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=gJ7RVFr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q7-20020a63cc47000000b005b8615bd40dsi3886703pgi.813.2023.11.24.07.45.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:45:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=gJ7RVFr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 5D3D6823D079; Thu, 23 Nov 2023 10:59:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230109AbjKWS60 (ORCPT + 99 others); Thu, 23 Nov 2023 13:58:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjKWS6X (ORCPT ); Thu, 23 Nov 2023 13:58:23 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9E1A1B3 for ; Thu, 23 Nov 2023 10:58:29 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9ffef4b2741so157090866b.3 for ; Thu, 23 Nov 2023 10:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1700765908; x=1701370708; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dhz1HO1TFrn+esU2JyrDQXLuWyA0tprcaBHDYdqjcxQ=; b=gJ7RVFr3BplZ5mzK9yqnTTzgxxePX12hdwZxTOZVjyvDkAHDNGRB9FOY1tBe9+Tciy v7+tjZrsyNjceJy18oL2Z0PyHfCOdBAa15uMgul5YIDOoogvZDnkNBz8RSJS8OeHMjlG hAU+224l4M7e5HgXkBk8ZP2krc+RG2WQMkmTJK/UIaU+wYVsssIBc4bQbKWJVqXmxvfD hkCm4zbKHfUKLnUOYqSq8HANBiB2FpLtzGTRmi8l6CQcN842fdGCr6pchNq2uSiwvp3J cZk79Z716Rz97DCQQXzbpTNlzgAXJFj5vVsv+doYGPWUVaxoW+jdHvP6vIYbyhBjx2sp DzdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700765908; x=1701370708; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dhz1HO1TFrn+esU2JyrDQXLuWyA0tprcaBHDYdqjcxQ=; b=bA+gyZfkXWavd7rFba/Jioej0h+bTZxB27Zg4gKzpNUASKf05KRgylSt181ZFl2H3M TFf3oipmUG+SbtxnAOPsFYwrwXfna2GW6IFh2tOcy6nO3kFumNWUFThOqJLLXk+eBIxp diT2Zq5pwZfjigaKzgBrjayKEbsNaPf/6PqAPSeXHOqfu0DXwgZKTubWK/b2EbdSBPH3 v8E47raR7rO7AU6qhrAirR1pC1NXDcMmQLfhxrnqp74y2EBLtCSoPrRGQlBSS5iJ/EFi 9ZFiRV+rjaIkt2uLsvaorQauU7l40QxxQOyGZmYRrG8GwINlXCPQPugibE/TMOtKJUmj oUUg== X-Gm-Message-State: AOJu0YyyfcXFiKlp8I6b0V1uPIgloRuPhLTmX7HZL3vdGf20U6gzfuGn BKIfInWq/8BhCaD1lgaqi7t2HQ== X-Received: by 2002:a17:906:d4:b0:a01:8ef2:849 with SMTP id 20-20020a17090600d400b00a018ef20849mr177665eji.4.1700765908104; Thu, 23 Nov 2023 10:58:28 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id l23-20020a170906231700b009ff1997ce86sm1115944eja.149.2023.11.23.10.58.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 10:58:27 -0800 (PST) From: Christoph Muellner To: 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?q?Bj=C3=B6rn=20T=C3=B6pel?= , Charlie Jenkins , =?UTF-8?q?Christoph=20M=C3=BCllner?= Subject: [PATCH 1/5] tools: selftests: riscv: Fix compile warnings in hwprobe Date: Thu, 23 Nov 2023 19:58:17 +0100 Message-ID: <20231123185821.2272504-2-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123185821.2272504-1-christoph.muellner@vrull.eu> References: <20231123185821.2272504-1-christoph.muellner@vrull.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 10:59:01 -0800 (PST) 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); -- 2.41.0