From patchwork Thu Nov 28 03:22:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liujing X-Patchwork-Id: 846053 Received: from cmccmta2.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75DA8433B1; Thu, 28 Nov 2024 03:22:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732764174; cv=none; b=O8z3b+l3XD/ahSfTYeCmgV54/gBFMSOFFsCvLT6B/uFjuzMA3xIP90T9EyZWlEAussAolpXekwmAHW+9SfPv7MWcqunJLw3Uxg4+9zBITDu//skLUc2ytNd3/w9dgqdBT/oQeDWgPoQ9Ot3CiAZ6a4eLmk4hr/XgGgoktLGeEGc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732764174; c=relaxed/simple; bh=SAiWo6sbT/fKesrptIDEhFk12afUVL4hGRQm9HqYN5Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Ebi2S1XUiZ2Z7vY2O335T4bo5IZ+wjS09eqbBYY4rRJOcKDH2ERQEie+hO9MKaYkykF2/QsHdMUatk1h2HzvbddOH+ie8dWhvURQf1rOLxJY+q0m2eIACMjcTU4bHLZmCVFWKVP6ix3pMp70x3kKtZwmgfwaKlw1mGDLW82xd3s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee56747e20544a-95461; Thu, 28 Nov 2024 11:22:47 +0800 (CST) X-RM-TRANSID: 2ee56747e20544a-95461 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.103]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee56747e206dc2-8a2a7; Thu, 28 Nov 2024 11:22:47 +0800 (CST) X-RM-TRANSID: 2ee56747e206dc2-8a2a7 From: liujing To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, shuah@kernel.org Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, liujing Subject: [PATCH] selftests/x86: Fix the wrong format specifier Date: Thu, 28 Nov 2024 11:22:40 +0800 Message-Id: <20241128032240.3288-1-liujing@cmss.chinamobile.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Both 'iterations' and 'num_threads' are unsigned int types, so the output format should be %u. Signed-off-by: liujing diff --git a/tools/testing/selftests/x86/amx.c b/tools/testing/selftests/x86/amx.c index 1fdf35a4d7f6..b64ba55c9019 100644 --- a/tools/testing/selftests/x86/amx.c +++ b/tools/testing/selftests/x86/amx.c @@ -758,7 +758,7 @@ static void test_context_switch(void) req_xtiledata_perm(); - printf("[RUN]\tCheck tiledata context switches, %d iterations, %d threads.\n", + printf("[RUN]\tCheck tiledata context switches, %u iterations, %u threads.\n", ctxtswtest_config.iterations, ctxtswtest_config.num_threads);