Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4165867rdh; Tue, 28 Nov 2023 13:49:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGq88R0HabUT03kMhtwIg44LAGKmnzBaXDAQ/HYBuxobNgs1hKVkjznIbP2g655U/8NCBS9 X-Received: by 2002:a05:6a21:789a:b0:18c:3260:e20f with SMTP id bf26-20020a056a21789a00b0018c3260e20fmr13075833pzc.33.1701208155046; Tue, 28 Nov 2023 13:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701208155; cv=none; d=google.com; s=arc-20160816; b=uUzHkEdwIFXoyGQ+UE+a1pxKxaewCHyq8gVkGw440AsMeUTjRe1iey1rdfFTiWmHnt QLu4Yz5tpxtYmB4z5/HwWaexpPjuRfC1LHgJsJsOIMg98w/K/t9re2MxLVr8w7EDwzX7 26Rz/a56gKtcERY7cc/F21ovu4RPb1Mdxz7oJdL/X9JmwbwiaI6OnEE21DlEBG6JZFnZ gsA/ZBjjjvLyFzmkavCS5hB84eYw8OiJmLRGC3H5M9+LV1aR0/LaxdxrAEBxbDIIv4Fl 6OaL1gXf9b0nJV3gHAmfzTZxizksWSBTzwV2tpiGyt9xo+ZPYwkas+dF1aKrqHL8XF77 E+Ig== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9gRjgH2cK5ajZRSCUmFV/9aCVUL7685vwmsd3v9kOPs=; fh=xr2tRmJO5CCcvERKgUbQiCfZD8weRWjaLLzHWlvNSHA=; b=XgmE6uqp38lB/YIQozWUmqPWWwJdD8q0GUNzWMYltddbJO7o5JVQZCWw7S+re2OdWZ k7Ws5GmVmgWAOMiYchrNl0znJa+BFr1K5oDaEGP6ZnNn/Qht2LKEKZngQavTg9OtCdZo dyMsmc4CKHeeJgwUo1VEV8tFNSAhV+8JFkCkclQjJw6LuvkXyFwd4vkctNuC+NVhyA5y rDrTuLCcKIhJicM+ykhoVMZBl6OxVH+wJX+1hRV2oE0vMV9S15bv1NSw+P5p030tmwkF jzL2rLEzznqyTqJ6wgXnbg6QM/LtLTK9KxAQc4MhrJwWoLfeQBkybO5gq/sMgzSxp2HL hCVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DEfh7QDL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id jo3-20020a170903054300b001cfb55da13bsi7965834plb.332.2023.11.28.13.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:49:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DEfh7QDL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 85AE18050624; Tue, 28 Nov 2023 13:49:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjK1Vs6 (ORCPT + 99 others); Tue, 28 Nov 2023 16:48:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjK1Vs5 (ORCPT ); Tue, 28 Nov 2023 16:48:57 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0F099; Tue, 28 Nov 2023 13:49:03 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-77d5cf15280so326509985a.0; Tue, 28 Nov 2023 13:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701208143; x=1701812943; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9gRjgH2cK5ajZRSCUmFV/9aCVUL7685vwmsd3v9kOPs=; b=DEfh7QDLS/Fer51VoZj5vdycQ+c8DXXGDbBgXRf7Gfpe1pfoa7Gr95JmGTRCV5S0jN buJN1xxnhueGYuFIE2PHhhmndkEZXvc6hJlgAui/DZtLgtT6LsJQ+It+2HvGoHa7Kxot 8y4JJS5UNxAmDtLnPSimbo0UdyzTj35jlBYk/xpSQUx8GOncMPPZ/YocGMq1eclTzHZM N1TIGwIcgUslpMubR1BfGm+QvMK9dGD3qIRMoACPD3ugqJSCeC5NWbgf7jnRo49vediW pFyocExZj25SsksEW1kI+9SJtfgD6poycc0kOBl7Fz7cuh0ASAt+LaCukOgVa6gGxmed dsuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701208143; x=1701812943; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9gRjgH2cK5ajZRSCUmFV/9aCVUL7685vwmsd3v9kOPs=; b=tyNkjK9KypzajWkPSL9c78UwRDN4qwXZZKzmY/Jygh3ibhWbb4uP5UMfSC7RfrJXs6 ckTOw98lfS/XoWX+9hlJMfPl+IGusvvjNCYIge9sNL24RnKqisbyoV1q9dXQ4uDYVEMD 8fpq17bQXs2kqsGQ7+S6TOdJ5FJabudQI3k0ZDRYvDDisjtrRNrUGpMK2PYprm9/uPF6 DLGj0ZbzZomk6zgh9l6vtJemScYHba+7xP9h1RFlWeA2/BCJ3ku8PdjiBNv0gNFw50yC aYktX7lfhpE2m8/XD5bTyWeDtUrd7sF+A2arGD4/Y6O6aQSwdM18aE4ZiI6U1BU5Qoro gFiw== X-Gm-Message-State: AOJu0YwMP9coF7o0lB8j+xqYQ1G+95fGSGp/6O9N9EYBfG/OF0q7DFBT 6BzIq/Hfhyi8jwIpX0d+7b0= X-Received: by 2002:a05:620a:2d89:b0:77b:9bf8:b0e3 with SMTP id tr9-20020a05620a2d8900b0077b9bf8b0e3mr14237057qkn.27.1701208142987; Tue, 28 Nov 2023 13:49:02 -0800 (PST) Received: from angquan-linux.. ([72.36.119.4]) by smtp.gmail.com with ESMTPSA id ea11-20020a05620a488b00b0077d93c7c785sm3131141qkb.119.2023.11.28.13.49.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:49:02 -0800 (PST) From: angquan yu X-Google-Original-From: angquan yu To: skhan@linuxfoundation.org Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, angquan yu Subject: [PATCH] selftests/breakpoints: Fix format specifier in ksft_print_msg in step_after_suspend_test.c Date: Tue, 28 Nov 2023 15:48:54 -0600 Message-Id: <20231128214854.60362-1-angquan21@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 13:49:12 -0800 (PST) From: angquan yu In the function 'tools/testing/selftests/breakpoints/run_test' within step_after_suspend_test.c, the ksft_print_msg function call incorrectly used '$s' as a format specifier. This commit corrects this typo to use the proper '%s' format specifier, ensuring the error message from waitpid() is correctly displayed. The issue manifested as a compilation warning (too many arguments for format [-Wformat-extra-args]), potentially obscuring actual runtime errors and complicating debugging processes. This fix enhances the clarity of error messages during test failures and ensures compliance with standard C format string conventions. Signed-off-by: angquan yu --- tools/testing/selftests/breakpoints/step_after_suspend_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/breakpoints/step_after_suspend_test.c b/tools/testing/selftests/breakpoints/step_after_suspend_test.c index 2cf6f10ab..b8703c499 100644 --- a/tools/testing/selftests/breakpoints/step_after_suspend_test.c +++ b/tools/testing/selftests/breakpoints/step_after_suspend_test.c @@ -89,7 +89,7 @@ int run_test(int cpu) wpid = waitpid(pid, &status, __WALL); if (wpid != pid) { - ksft_print_msg("waitpid() failed: $s\n", strerror(errno)); + ksft_print_msg("waitpid() failed: %s\n", strerror(errno)); return KSFT_FAIL; } if (WIFEXITED(status)) { -- 2.39.2