Message ID | d0fd9e1506676076f14e0ea65766667cb7d3239c.1697196663.git.maciej.wieczor-retman@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp1824459vqb; Fri, 13 Oct 2023 04:37:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEducwLWr/bO+QVIOBJk03BqwZ+TGT8515ia4d7TK/GOJfTWvIyYRTUWGcMgzXnEoHEQlwu X-Received: by 2002:a17:90a:e7c8:b0:27d:193f:2130 with SMTP id kb8-20020a17090ae7c800b0027d193f2130mr5422982pjb.3.1697197055720; Fri, 13 Oct 2023 04:37:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697197055; cv=none; d=google.com; s=arc-20160816; b=QERzDOoU5KNcf5QnkobtGhTX4NtgqgmgsXa8ZbKiBQ4kpyE3PdXg45rpGqvb9d6uu5 0cHI8WgDwGwjM/xfsdYDL66brsyk7ReQVOe5g72bnvCla5kB94LuZ1XkiOBCrt7s7zyT BnSkzj0iyed172dPzCUdX2HwfXB7GVkKrPpBjFngJVK2oVBGsQQU5CuzaUlKJGhe/boP LH+5dEX7hTxq8nGi8oCSiNPseu860RtRjKouNKr/uoecEb2FhCvQhYxoyW9h8zcCE8zt rWGw/xUpCD/FKeQhAVKf2MzGlxn1XV5ukVFiIavO2667spTFkzPuUv4FeexxPBibLw/r lB1g== 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=miE5LhxZDQqvUPDgRL6fIVPQQx8PLtGvZyaq72nMVJ4=; fh=fn0AWIQbuxjUao4CckPCArAms5Ae1ulO+SPfXoxHNbk=; b=LY/NcFFts3TpUgxxMIdDvBuEgQcT5bKN8EXq0nr9U5wtZAjV1xraNUen7nz7d2Ut4i iexh02LvyvWyzQG+t9SjEtkXY+IVN/3S5Ly3hKC092/SafbwWx6dQVBtdXl7b0wW9C7E sSJFuWxHefqeYfJ0KZgxYKNBFlRo4Jc3aoVOeC+QnNz2Bh6L7jGgLeWt7FpY6KaUDGIn HVXSUpifD60sVvRIkG0HaX4VSUKuQ0XRXCRXCADq2RLaYD7tGjtw/lee9DkDu/Oc4+KD 2N+kcTrdG1KyShnGuMzqXnCfSbVbH3j7DlGC2BGSqL2I49GsiDQyoXU1LSQtWr3MFdwq +9bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NyAxajDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l12-20020a17090a850c00b00274e2ba0ca6si4342601pjn.134.2023.10.13.04.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:37:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NyAxajDA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A898C802B132; Fri, 13 Oct 2023 04:37:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231248AbjJMLhV (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Fri, 13 Oct 2023 07:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbjJMLhT (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 13 Oct 2023 07:37:19 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71B53BE; Fri, 13 Oct 2023 04:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697197038; x=1728733038; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gTgib667BScrz5onb7ynxK7m+MW46u9fJ0JCzv+4y3s=; b=NyAxajDAvMySUR/VPdqaYxho5Tmfn2AsmCiZl3SXfjscMjY9oFO2w+cQ aPDHYpYoP1EXAsNwacK5CJ3YxTEDzeK//+7jvy0U+Xp+8QrldmPFkJSay ehD7ZS7TUHh39UinusA68511dikXh6pA7ayEC9sW8uQIVszv6hlPBypm6 ZYtnLCZTcLmAAwD8TkOgbbTn9Ne+y2TmP22mEm6xckGU/eHxNT4BQYQks ixQKbedHXR18hHtDdp/NJ9SxojD/oW7L1mN56hVcnq7qJQyjtyFaymNi8 qSE81/YdK60uwub9/9RpDOCVWrtZwxciuvuvd02hSZA9etxSLNQtcaMrB Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="449353259" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="449353259" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:37:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="754675671" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="754675671" Received: from bsankiew-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.0.114]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:37:15 -0700 From: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> To: Shuah Khan <shuah@kernel.org> Cc: ilpo.jarvinen@linux.intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 3/8] selftests/openat2: Fix wrong format specifier Date: Fri, 13 Oct 2023 13:36:27 +0200 Message-ID: <d0fd9e1506676076f14e0ea65766667cb7d3239c.1697196663.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <cover.1697196663.git.maciej.wieczor-retman@intel.com> References: <cover.1697196663.git.maciej.wieczor-retman@intel.com> 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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 13 Oct 2023 04:37:33 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779640100048792984 X-GMAIL-MSGID: 1779640100048792984 |
Series |
Add printf attribute to kselftest functions
|
|
Commit Message
Maciej Wieczor-Retman
Oct. 13, 2023, 11:36 a.m. UTC
Compiling openat2 selftest after adding a __printf() attribute to ksft_print_msg() exposes a -Wformat warning in test_openat2_flags(). The wrong format specifier is used for printing test.how->flags variable. Change the format specifier to %llX so it matches the printed variable. Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> --- Changelog v6: - Add an explanation to the patch message on how the warning that the patch resolves was caught. (Shuah) Changelog v2: - Added Reviewed-by tag (Ilpo) tools/testing/selftests/openat2/openat2_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c index 7fb902099de4..9024754530b2 100644 --- a/tools/testing/selftests/openat2/openat2_test.c +++ b/tools/testing/selftests/openat2/openat2_test.c @@ -300,7 +300,7 @@ void test_openat2_flags(void) ksft_print_msg("openat2 unexpectedly returned "); if (fdpath) - ksft_print_msg("%d['%s'] with %X (!= %X)\n", + ksft_print_msg("%d['%s'] with %X (!= %llX)\n", fd, fdpath, fdflags, test->how.flags); else