Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1467052rdb; Sat, 18 Nov 2023 19:01:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFllvMryUw0Zx5sfo7ahwDiS3JLN4Ue47ltAIhd5cvy2g+lnxciBOXIPE89CrCeOaHefLcx X-Received: by 2002:a05:6808:2207:b0:3ae:1298:257a with SMTP id bd7-20020a056808220700b003ae1298257amr5879526oib.1.1700362874168; Sat, 18 Nov 2023 19:01:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700362874; cv=none; d=google.com; s=arc-20160816; b=gtaFDDNQs56dnC+RUT15f9iOqpTW7HNDsmAnoEJBYAo2wpl9z/3GsTBlvHjDSteCGs JWbUZE62HY4SrXkFxKHhDo3fP1z9mUmge4+cNQdGfagg9TAYi0Y7ny30/sauumjSarqC p4iSgOZCYopplYAGVIkSxoNe5k/hjRTJ6lOf/KZHDIev2Yyt1M38yjiHF3d2to7d/zdS Yd71iXw0MJoZRoJTnFjF0iumxH64cG6HF/3+i2Dcq1EVsLw0wvUjONh31TPO0rtZ0xTg 2Km30hgPUkl8KNhSzEDzhqhQv8aLL3MvpKka4dsPRJGawJ9xLK0W3zTcwuBUlCvJ1Ozd r5KQ== 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=oZtE1sXq/6EOMIXLdRyz9i4gTsfOOa5vBqb4CxOsnD8=; fh=AvN+bMGX01TE5KVWFhQp0+oRIuiYILZsjGp5CRl0o0c=; b=XWumVmXm/6f1YprAmH1KOUY88NbqhIi7msO0Hmvv7sIcdW+LkutPIhjAhAK8zS4ibe J3raWcmBzeSejqwiXykkXjGDRDsu7a1tj9WHkmAuvkTzbvlZlwZWET3F3FchD4gEUzTN qxU1VTdopEQUScozGIXyUbiNV2IVTESPDwLdCV3wxcWhcuazoweH9CLdr+PlKsJifksF XXyhjIaK4wMMn0gzYk6jZjJPeRpZtCB9IOnAtSh2QkRNfgRqA37RykSlAfE4w71AAFqz y5Qu5hKfCJs7kJAlELvQPnF6eP+V6kf2K70Im3sZVS6P3J9CrpvdXVZklpHGUYE4/xnJ JWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V++0N8cB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id 128-20020a630186000000b005be03f0da68si5488068pgb.13.2023.11.18.19.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 19:01:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=V++0N8cB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 487398057E76; Sat, 18 Nov 2023 19:01:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbjKSC5n (ORCPT + 99 others); Sat, 18 Nov 2023 21:57:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKSC5m (ORCPT ); Sat, 18 Nov 2023 21:57:42 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54844A4; Sat, 18 Nov 2023 18:57:39 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-66d13ac2796so5924676d6.2; Sat, 18 Nov 2023 18:57:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700362657; x=1700967457; 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=oZtE1sXq/6EOMIXLdRyz9i4gTsfOOa5vBqb4CxOsnD8=; b=V++0N8cBkqnG+bWLtWvKUKM2WZDDIANkWYzYC1c2ov3Z2f84wiYYYOL368Z5LMKr2W KOICjtT55KjN+bF1/8EYNactywg1PDDl7LKVk/hG+8vWhCJzCVVmiAKwMFhXVGbjalg+ j+sWUwPlNyvOjpS1dpaH3o8I0XeP4bteHsziHh/WTOi0tYrW2Ea98aLMC/LVgjAvjrx3 +q+3U8jA/FlHp46PvIO9zsLXXgCLkq4JvV/aipDGFN9R5ARxnVRlA0jykf7NNseR8pcI qq+mWLiXRA4S6EakZis4LgTNlbNj3sXYlWqbzHRwjezc7U8MLpqndvWjpZtKzqhdH7+g QOPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700362657; x=1700967457; 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=oZtE1sXq/6EOMIXLdRyz9i4gTsfOOa5vBqb4CxOsnD8=; b=mXoZ+ZQUtyYgylizQ3xZ2jwXJODhB2UPaQ3UYGaCgItq4devTutsud6pQLM/QCyZZD K6qCMKHANiJCja5HJ9Lawq01RjlvxJRaz/VqGLGXnI/UsO3+lBlNTJx9j18hr6KyOo00 i8vf978EsaG5lIEPCcNpSvlL37/jInbXROz1Zioh+CHDNiBTdVTohmFkQ24vW5NJfIct E8LqK5sL07+fJSL5fh5bXsOLyuGtKNmIjIWNSkrRzJ2mSwtMmwGcpjICr2QlzVmpsdyt fxej0NGQ6+V7T+DrRbAc40wa7BqXa17P4ZVmjVhcaWUhA8FRyj98qKeM8UApcQeX+xuy kbOg== X-Gm-Message-State: AOJu0Yzu6n1Q+PgBnvQhnCk0UsGpCaOTrAGY1htpfq7QM+YpOAbk+FbH MR9MIjWZZY7SCohpM+ksARsDHkza/H8ee3cD X-Received: by 2002:ad4:5f08:0:b0:677:f79a:17f0 with SMTP id fo8-20020ad45f08000000b00677f79a17f0mr5498448qvb.25.1700362657542; Sat, 18 Nov 2023 18:57:37 -0800 (PST) Received: from angquan-linux.. ([72.36.119.4]) by smtp.gmail.com with ESMTPSA id v6-20020a0ccd86000000b0065b0771f2edsm1831981qvm.136.2023.11.18.18.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 18:57:37 -0800 (PST) From: angquan yu X-Google-Original-From: angquan yu To: linux-kselftest@vger.kernel.org Cc: linux-kernel@vger.kernel.org, shuah@kernal.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, angquan yu Subject: [PATCH] [PATCH,breakpoints] selftests/breakpoints: Fix format specifier in ksft_print_msg in step_after_suspend_test.c Date: Sat, 18 Nov 2023 20:57:31 -0600 Message-Id: <20231119025731.38846-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 18 Nov 2023 19:01:11 -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