From patchwork Wed Oct 11 08:23:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maciej Wieczor-Retman X-Patchwork-Id: 151189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp381528vqb; Wed, 11 Oct 2023 01:24:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4b6ieQMtibts3zvmNCDj3MIXJsVaTKPk68pBIGemNzs/Y5qCiLGox0vNc0FUvf2taJbdb X-Received: by 2002:a05:6808:2129:b0:3ae:5aab:a6fd with SMTP id r41-20020a056808212900b003ae5aaba6fdmr25817203oiw.5.1697012696972; Wed, 11 Oct 2023 01:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012696; cv=none; d=google.com; s=arc-20160816; b=vKF0zvJj2UgBIq1VnZ7D1zAqaa23ylhGFVjEpMT7ZOldi8QCJBBiG1zhVIQa7E4PbF aCtTpfPOIdDH2s8wrZcOx3wXfqo+uIw9WkAiT7cZfOKSotFN83mRS1K818al0Qven+aM AnzyDCYRxl6Q44osCTPMptiYrLnHWODd5zTzxeqvBFVRKVWu/wjKPhox/tcCVd8a3aAY rP/QvBftULTumfpSmjX5QcpPfgHt0Tm9e2m7stCvIj2ZJK444xAr5Pzvb7VDcIbm8xLu qLrXAPWszF1VF6AEAD28vrA/NokKApF+bJt9tYqU+y/MBTntFxtRTiFEkksBPadmN2ab uOvQ== 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=AMq54vC/97rLwTtroLlSB17vN0vDy7yj6cpKJl2E1kQ=; fh=fn0AWIQbuxjUao4CckPCArAms5Ae1ulO+SPfXoxHNbk=; b=Q5yV5rJ7LHAJUQgrzAHuh6bwJxoF+HS9s0bFWkKhw7TitYQp61PRcQdM9zmMwK1KsE QUBv4/VtHv8iqtkmfNlm6hiWbmvlk/ld0EYOAwJmeEyrrFB3snGNYNzyWzQ6RrdYsYm+ opFSc09PzA2XmQqhNf9B3cpS410iQ70XOZ0+9GaKCmD3RK/Kn7xvtuqpLEQP558t9C/U Ad8HZL1OwIG/K0D+hjrK+kG3kqlT3fNzHQO3M4B9mAfq2XONpNTHGlkrdm+PZtL4Cd1t gf6Kkycs2wW9tAkZZWLF3SjRa/E+kUx4B+zzjph63DowZ6HOX79E/pzqDAFh0pZlEsjj Oa1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ntIWm+5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b130-20020a633488000000b00584b6af3b9fsi4486482pga.524.2023.10.11.01.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ntIWm+5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 2844F81A6E7A; Wed, 11 Oct 2023 01:24:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbjJKIYq (ORCPT + 19 others); Wed, 11 Oct 2023 04:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230321AbjJKIYn (ORCPT ); Wed, 11 Oct 2023 04:24:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B97E692; Wed, 11 Oct 2023 01:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697012681; x=1728548681; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b4TyoAhMCzLpIfy+bwpbogijkWzx9xqBmM+wkUI3lCg=; b=ntIWm+5GP6gRhHThVD75V9/eGp58ZBHO/+BHjPxwJtPH99TmkewWaVDp MJPc+MVrWoN9NNzluNRvQIFsri+7NmpENkgAy1nODcUouYX449x6viPTL m1r2d4xmnB5FqZB0IXD7vrYA4bj4sUeFXf3AWsjfOdWRdBY6YB7u1oPKV U2VzpPzfzHzVrmtOcWAxvCX3fpivOa0OagzVyC63rVhJEO7iruiF5BHTV MDlvyal/oP1O4i6OBSUVJiuOKU4s+O0gSq2PPJhGZ9TstE9K6nDAT8Eu1 5GKAcuuUeVyHZ9l+EZLYixRgp/eZUhS1d5S/ePP1Bv7BwwhLO99nz9Mrx g==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="3200768" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="3200768" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 01:24:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="730411635" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="730411635" Received: from bmatwiej-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.17.119]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 01:24:37 -0700 From: Maciej Wieczor-Retman To: Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 3/8] selftests/openat2: Fix wrong format specifier Date: Wed, 11 Oct 2023 10:23:59 +0200 Message-ID: <177c35acb0e8921e3fce0928d19427b76708ea89.1697012398.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:24:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779446785514247160 X-GMAIL-MSGID: 1779446785514247160 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: Maciej Wieczor-Retman Reviewed-by: Ilpo Järvinen --- 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