From patchwork Mon Aug 28 10:49:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Wieczor-Retman X-Patchwork-Id: 137023 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp3245589vqm; Mon, 28 Aug 2023 03:57:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJgAh1VT8s6BglhjuueSBlPWTo3faUPQBqBhvD9DbCqjHtsRVfHKgvnLRfESkhwisOMauR X-Received: by 2002:a17:906:5199:b0:9a1:b705:75d1 with SMTP id y25-20020a170906519900b009a1b70575d1mr14023334ejk.51.1693220235446; Mon, 28 Aug 2023 03:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693220235; cv=none; d=google.com; s=arc-20160816; b=DKMJLH86rmeFZv7xtl/SPRhlsBUrYardS2lu22zmehCcb6BSZGPY9uc32oJMXK9g3t m9dzxWlh00hhJFNJQ/3eD54Nl1hgGtNj4dmodA+lvZCskaRo4DgIZnSx9VEosNnm1gM8 64DSeAaPyLKGxzSqlsy53oX7RT4cni5YXTOuA/6XCbs0R4TL5LN9cQyWRXmD5OAkvk01 KbGkc4msU9r6dET9KvRW2D4bnYH+HoCbrMg2fIgVCdGYNNaGtb2mJ0tE5dLTU2R1sAVT Ejb+q3Bf41hTBybyiuO0YguCcdG0EkLKc9XxW3qIHBvlvILgS1hKI63HDcbMzolI+Ag3 cLiQ== 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=QE7p4B3abom2ND4T90UwOmyI03Grfme7lAdOLihlQvA=; fh=myjXE8eAMkM2H0tHGBnWa1ar6NNZsj4Z/nL+Y0E6/0U=; b=xFI9yIzvsCJPBAI3vAiFb9+0vaRGi43//6s+UJlx+8/xeL+Ws4FBYnzqJKO8+m/ilE IxZJC4dxfuVgjiXcSw8Xiqv+58ub8BJvmhMnvcFSmrwnGJBBD2hOTVAuOqXfJL5G4r0A 3RZibWfgbfP2yZKqJSfcE+V/KziSgkfBOkdFk0MM0uXma8Mk/+XOCRzFoexYh2Zv3Ryj vzmvIQAgz6Rp3t5JCkU7FlihbuMUevN3ZDnaMsaCdW+VDtGcbWnWqIRtrNay3grj9dkR GogNbWEOSMMEAM5b8WVQsXYewEEgihaCNVRYQ5QNGfjCZsdvaK3FAQJCPAH5HFBnWGEP FREA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=XiXrDSwx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a170906b20700b0099cbfe8a383si2474036ejz.779.2023.08.28.03.56.30; Mon, 28 Aug 2023 03:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=XiXrDSwx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232144AbjH1Kvo (ORCPT + 99 others); Mon, 28 Aug 2023 06:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232249AbjH1Kuu (ORCPT ); Mon, 28 Aug 2023 06:50:50 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF250199; Mon, 28 Aug 2023 03:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693219825; x=1724755825; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yeabUHzSr9wnJ5Khd/Kxt8JMKHZYb3HenPBaDj2y7Bw=; b=XiXrDSwxfMaYndVIHbKk2K9Y+ha9boTBhY4t2O+o6AWtRveg356IvsOk CPFVE6RtOLembWFeY6sfSykflTeRQMwn8xu71SEQMOyqmfKIWlcypUPmW QkYtNKhjK2OMUEtdEGM/AiF/yB/GQFdWHoRmBH/pmhECH4IJsMkIf79Jx N1D7A/kESZL44Y/TEoFkRfuUZA/zxZalh0Kcq4IugDVP2Eg4T/SzaD/Ne 2pTkXKwUylkf61donEE3MGbM0LE0Wih/B8u15EOez2MQJvtqRdyQXSGjS s20vZCj3xcJaRk7dXVijWbug8kHt0gZvH1T+7uXfUQUpAswqHY4w4HoKw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="355398873" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="355398873" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 03:50:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="803658331" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="803658331" Received: from nwiklans-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.22.120]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 03:50:22 -0700 From: "Wieczor-Retman, Maciej" To: Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, reinette.chatre@intel.com, "Wieczor-Retman, Maciej" , Wieczor-Retman@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] selftests/openat2: Fix wrong format specifier Date: Mon, 28 Aug 2023 12:49:07 +0200 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775470101607355168 X-GMAIL-MSGID: 1775470101607355168 Ksft_print_msg() inside test_openat2_flags() uses the wrong format specifier for printing test.how->flags variable. Change the format specifier to %llX so it matches the printed variable. Signed-off-by: Wieczor-Retman, Maciej --- 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