Received: by 2002:ab2:687:0:b0:1f4:6588:b3a7 with SMTP id s7csp36979lqe; Tue, 9 Apr 2024 13:40:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjAwsJ+Ny2lJfd2MmAj98ikRgK0urAoscx+6TwgHEUyu32er71CvdxI+NmI0dip0zhBtsnpp30ci78D0F0BmCV+3zC+SSR5YcFPvzunA== X-Google-Smtp-Source: AGHT+IGWN2xce2w8VNZt3qIjfIJPxLmFOarulEN7moKCdTABdSW+6Vmxg344nN1re/F2GD7eWg8v X-Received: by 2002:a05:6214:e8e:b0:699:40ba:1962 with SMTP id hf14-20020a0562140e8e00b0069940ba1962mr1494007qvb.6.1712695247843; Tue, 09 Apr 2024 13:40:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712695247; cv=pass; d=google.com; s=arc-20160816; b=D786K5AW1+g3D4X0qzTK0ZacvDo9jc3ZwLoBILwRSvHODZTxS+gmqBOIZangpr0YPy YvFIRDqynZi1J6feiFuBXYXtDK79RHaqrQpdE5suFqrg2Oy/K1S8M/p3+fQOH8b0ZDVt s+m1SqaBG7DDTJrJH9Ak6Pea5X7vZQLYgGMiuWixKAyUULvEvPMCjRVABbP78BIv5ODw 1fuMX9TlJ9WAf0HXl8daPImZyalVY1gAARhECV5goXsR4U0ns9dtxoVR5W4uZGpEwVY4 yjz6x4O704U9rcrY9Ti0qZtaYcF7GfVWBe8CO8Jd2G1tfOo7SnnmqBSFqAsASNpZlgO/ BzmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=tJN2Xrbjq7p9UbisbNBOB9Gvq5vHGyHWtInMNgWIiM8=; fh=klHA41U5kcMoLr1/zB4yx/2zIPx+bOQrTnZe8OQRhmI=; b=t1baUZGcWjvWKZgZniQ5hshvUghWnG30MJ6PR0BRg6hdDC3b8//rhALRQr/4RKPDpI 9DiwXiccrzy6d0Oe+j4Uxsu0vOwu0ufJBVnyrz72cQF6Q65nIzgy1oGN91rrIxSMveos CAsGjbVlY2jfWWoYjcq6zhTjxEmlaoLFPDvMfVTZqD/h4h1OikyazvB9sRNAh460ihU+ PHmlyKHifbMxk4VSCAzs86rcAZTV7GOUmjj5fRN5YzQgGXmG9dXW/an0rcRdXMYA4Mpv ULGOmHoQjcNfY40Bobr03ozzDnpeDS9o9R1peXig4vn4quVHDVT0ilQUcEcK2PU94soS iihg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZPEdseiB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b13-20020a0cc98d000000b00699363cb435si11513719qvk.543.2024.04.09.13.40.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 13:40:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZPEdseiB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-137609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F1441C212E9 for ; Tue, 9 Apr 2024 20:40:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECD9615885A; Tue, 9 Apr 2024 20:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZPEdseiB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B1FC13E3E8; Tue, 9 Apr 2024 20:40:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712695239; cv=none; b=HTXDE0bs5t1kD4kCXQ4BaKp6dnaAVI6SU+XraI6efhE6MjYzt0n3lgdN/IR+MyLjxgxgsN0P6OEg3bNghiRbZG0svjT+MsKFZC2KbH//AO/JdXGoMFMdVe5N1xch3Cce+dsR+aiq8G7bZyEoSni9QUXnhgAVgwjYZzr6a2OC5Ok= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712695239; c=relaxed/simple; bh=QjNSSY66Qn3fpHE7t3xN6VwDZVTkupieYJdnQIRVOa0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=cyLxjekUfPI/YtBSYrU9+UrtpXsLUdVAXXCkq4sU6MFDk5/iddoUcq5rtSsCjEo7yc4Qrn+4XwTQ1sJ07FAv2QdcqsOqKDOK4VwbkCoC/xwnHYFrMVz7dSuoZYPKCgxXYvVX9KiesRMbOANA2+tlyU07bIHwX6bXLV1oYQ8Ecxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZPEdseiB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7910C433C7; Tue, 9 Apr 2024 20:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712695238; bh=QjNSSY66Qn3fpHE7t3xN6VwDZVTkupieYJdnQIRVOa0=; h=From:Date:Subject:To:Cc:From; b=ZPEdseiB8PUHZk4Nrm2rxQ+hRppYNTRuvDsdcDG5tUC7S6hKsPhc83k03H8TkR5pN IFu/X26ltYYGl5Sa5bu72Ll1VQP8yMkhR2y8ABDGaf8S2a6OREnC8xmEWn2ObJPWdm aYPTcrluUOJqQm34E6UOZXhoLAEE36BmSN9dy8BPJ9QZcvgdRnEUsG24i4V2yFqpQc CoDzO0fcC9yn7t73ma6YW7r42r4++/2dLpmEL0EYiT+BW8J0eAakONiIggkgfOMp5n 3MQuzh1IwyPKtPqmtFNrj8gqD21TfIoKzSdYSduYtWUnU6r+3/PmVr0s8upPOIkPjx BXIYYRIl8Hhkw== From: Mark Brown Date: Tue, 09 Apr 2024 21:40:32 +0100 Subject: [PATCH] selftests/clone3: Correct log message for waitpid() failures Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240409-kselftest-clone3-waitpid-v1-1-2b31e4aaac16@kernel.org> X-B4-Tracking: v=1; b=H4sIAL+nFWYC/x3MQQqEMAxA0atI1hPo2FbEqwyzkJpoUKo0ZUaQ3 t3i8i3+v0ApCSkMzQWJfqKyx4r3q4GwjHEmlKkaWtM644zHVWnjTJoxbHski/9R8iETdn1wvbW BPTPU/EjEcj7rz7eUGx/DwbJqAAAA To: Christian Brauner , Shuah Khan Cc: linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Mark Brown X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1103; i=broonie@kernel.org; h=from:subject:message-id; bh=QjNSSY66Qn3fpHE7t3xN6VwDZVTkupieYJdnQIRVOa0=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBmFafEQiwprOZALX3sQJyJ5+qdeqYdrvpE8CNl/2Bv WAs+7SaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZhWnxAAKCRAk1otyXVSH0IX8B/ 4sMqd+yPOS+o3NzuZH+mjJ39Mi0De7fhC35ion9Xcn+88nvB7Ac+RV+Dk/k6LLsBrUvA/AhV/lmMr1 BfrQnmJzaRu+IbBpEYqtv7IEH231qrYhYZfKz32HGPQNApQymg2tZWHCcsF7bbvAlyM3onzp9NqWzi dznw5f2iJW61eLOId9Y8qhAH0jWZ8pCEengeaQHb15ySs0rf4CjtJBcUt5UytCjYtwvWtyCAw6htjG DTYJ57YhYrsd97kfN1hktdAMfUdjHEr/cOZ1FAUgZUc8ScHl9LFdv+uDFmPWOqIpt8q6SA+ZHg9BCj xLN4vHvYXYmOIEFVMdUEFFdwDTIUKU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB When logging an error from calling waitpid() on the child we print a misleading error message saying that the error we report was returned by the chilld. Fix this to say the error is from waitpid(). Signed-off-by: Mark Brown --- tools/testing/selftests/clone3/clone3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/clone3/clone3.c b/tools/testing/selftests/clone3/clone3.c index 3c9bf0cd82a8..eb108727c35c 100644 --- a/tools/testing/selftests/clone3/clone3.c +++ b/tools/testing/selftests/clone3/clone3.c @@ -95,7 +95,7 @@ static int call_clone3(uint64_t flags, size_t size, enum test_mode test_mode) getpid(), pid); if (waitpid(-1, &status, __WALL) < 0) { - ksft_print_msg("Child returned %s\n", strerror(errno)); + ksft_print_msg("waitpid() returned %s\n", strerror(errno)); return -errno; } if (WEXITSTATUS(status)) --- base-commit: 8cb4a9a82b21623dbb4b3051dd30d98356cf95bc change-id: 20240405-kselftest-clone3-waitpid-68c4833cf5ff Best regards, -- Mark Brown