Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1710824rwi; Mon, 31 Oct 2022 21:40:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IiWkFPi/+lw8nSyz5UHCuLoKpq7xhJp/XY2dUOFDw2mNUMj4kY5vWs5xmiR243os7Tw2W X-Received: by 2002:a17:906:58c6:b0:78d:b37f:5ce5 with SMTP id e6-20020a17090658c600b0078db37f5ce5mr16969639ejs.707.1667277603619; Mon, 31 Oct 2022 21:40:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667277603; cv=none; d=google.com; s=arc-20160816; b=VcIUnNGGlo84JsloCvi2te3u3L0UdjU2/pGPo2Xf9jIcL5VZTeSTnQOHwKHJBIi41D G6kdX8llVcpSL8+YUs3sn85oVZCzG7dHULUQzqgewwFXoFRx7MRQ7yrgH4mzKJiVxDKK CsZpHKFXExGAnrTMiHbAcxSznnIk3ebOPqDTpcF8npdEv/Z3M8XCuMFSTbWSmDtBvVqu Z1WkxRXkn4C2keFCOgAITO7vEwZN3L3fAmV2sO0Sw4Uhd+jQSOqCZBd5a2sE3NZ7Wq1f q+fhr8ZDIpDI2cnj4VxtFMSItucvQJzoTCwf8LIU480aTgZv97BvX+6lz2O/k709A0sT IJgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mhwrn1OUmUu0DTfebcpv2bFfdtPq7G7jswhzVj8CC+Q=; b=ZCxf2XM9M+PgTRQL/ErraXa6stFFsy2KFhJFt6aOl/M5Cus9quuGrViQueEXSmuxHm maIyHwu1J9y3dRc6IIR0dGOl+jltmG/JQ4gFvPiLA3YhMU/NQiFz9X+6mjCH2K4iwii7 owaYonUX9bru7RWptreJYr9fVSFdkeLJu916ahmo8v+KVza47om1IBFpQX6CcVT2Rwit FY+M/UeyBNK2WHtE1fRmaNrdRBl/LBexg04wic0i/ypkezhzy5vLPh309OlI1W4o+dYs XE2mXjwrXqH2vdugauKFl7WKaKx/G7blNwmcpxoNzY86D6fIXmQQbZb7lU3/2HzgI6Ua x4qw== ARC-Authentication-Results: i=1; mx.google.com; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a056402084a00b00459a0a21965si12982094edz.516.2022.10.31.21.39.20; Mon, 31 Oct 2022 21:40:03 -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; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229562AbiKAD73 (ORCPT + 98 others); Mon, 31 Oct 2022 23:59:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiKAD70 (ORCPT ); Mon, 31 Oct 2022 23:59:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A451E1263B; Mon, 31 Oct 2022 20:59:25 -0700 (PDT) Received: from canpemm500005.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N1bqZ0TVqzHvPm; Tue, 1 Nov 2022 11:59:06 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.63) by canpemm500005.china.huawei.com (7.192.104.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 1 Nov 2022 11:59:23 +0800 From: Zhao Gongyi To: , CC: , , , Zhao Gongyi Subject: [PATCH -next] selftests/pidfd_test: Remove the erroneous ',' Date: Tue, 1 Nov 2022 11:56:02 +0800 Message-ID: <20221101035602.40623-1-zhaogongyi@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.63] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To canpemm500005.china.huawei.com (7.192.104.229) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Remove the erroneous ',', otherwise it might result in wrong output and report: ... Bail out! (errno %d) test: Unexpected epoll_wait result (c=4208480, events=2) ... Fixes: 740378dc7834 ("pidfd: add polling selftests") Signed-off-by: Zhao Gongyi --- tools/testing/selftests/pidfd/pidfd_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/pidfd_test.c b/tools/testing/selftests/pidfd/pidfd_test.c index d36654265b7a..e2dd4ed84984 100644 --- a/tools/testing/selftests/pidfd/pidfd_test.c +++ b/tools/testing/selftests/pidfd/pidfd_test.c @@ -413,7 +413,7 @@ static void poll_pidfd(const char *test_name, int pidfd) c = epoll_wait(epoll_fd, events, MAX_EVENTS, 5000); if (c != 1 || !(events[0].events & EPOLLIN)) - ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) ", + ksft_exit_fail_msg("%s test: Unexpected epoll_wait result (c=%d, events=%x) " "(errno %d)\n", test_name, c, events[0].events, errno); -- 2.17.1