From nobody Tue Dec 2 02:47:11 2025 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 142FB355050 for ; Tue, 18 Nov 2025 18:10:51 +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=1763489452; cv=none; b=UlXWPPonDqEmB/zasla5SNqHDIiZ4QRaYcyXR4gWf7MLTY5XW45xAW4JYjNYw6hBg9hxN7+aB9cqYikSw3DoqrQXUicxoxL24T0dJHJSzZmW6GBtB5gwFotGoz4mGzkJx7S9hgJwB03/PH+GiC+jiks2GkIbFtKMh1wsyd7yLys= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763489452; c=relaxed/simple; bh=fOpeaPbF1C83S+AnriTWnUlfDJdmGqoTy8hMXQsnkJE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g6MuFdA1yWA6II4HQ2LM57pG2eQu12IBv2sGx4U/EZ8YOxELPdL7/GEZJ+Nx0eiSCkrD9Fh/6LCueeQpSjfKiraxqOEpC4QkDHea3RQbdfOB3UA2ZpKDBDaEWbWpkTVeAFRoqrv3z2KZd6/oyo/s8mL3kfuNeJ4CmYkWig0VgXE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KGRhe/9V; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KGRhe/9V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D838AC4CEFB; Tue, 18 Nov 2025 18:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763489451; bh=fOpeaPbF1C83S+AnriTWnUlfDJdmGqoTy8hMXQsnkJE=; h=From:To:Cc:Subject:Date:From; b=KGRhe/9VTVaNtHgMudCOU5AifM3JUAT8EBLPPuwbH0NsbWJas3sUy6iQkmuBxZ8Z3 rLqAm4yN59fr5UDfbN5AV5nyfzOc4bKV7PjwQc18uDy7+OlaeZVxmXjE7gwP+tA+XN aYzJ9nGU65SSzcfzjf3PoFjz2Mh9Q3kfT9ZrU2RtvE9Pvegq/Qo6XGzJ+GiL1Zggi1 tMf8mb8g2CsnrTg2c5xan9f7UKsRyfD2hcNoWcL0FUtURxz/pQHXKN5lIz2XJldTG+ QVDZIvnvltc9exEtGnCkUaNCCL88dfNX8RURa5valgM46ZPSq25EkjDkU84BiDVD0T Cmg/Zb1UfCEcA== From: Pratyush Yadav To: Andrew Morton , Alexander Graf , Mike Rapoport , Pasha Tatashin , Pratyush Yadav Cc: kexec@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] test_kho: always print restore status Date: Tue, 18 Nov 2025 19:10:45 +0100 Message-ID: <20251118181046.23321-1-pratyush@kernel.org> X-Mailer: git-send-email 2.51.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently the KHO test only prints a message on success, and remains silent on failure. This makes it difficult to notice a failing test. A failing test is usually more interesting than a successful one. Always print the test status after attempting restore. Signed-off-by: Pratyush Yadav Acked-by: SeongJae Park Reviewed-by: Mike Rapoport (Microsoft) Reviewed-by: Pasha Tatashin --- lib/test_kho.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/test_kho.c b/lib/test_kho.c index 85b60d87a50ad..47de562807955 100644 --- a/lib/test_kho.c +++ b/lib/test_kho.c @@ -306,7 +306,6 @@ static int kho_test_restore(phys_addr_t fdt_phys) if (err) return err; =20 - pr_info("KHO restore succeeded\n"); return 0; } =20 @@ -319,8 +318,15 @@ static int __init kho_test_init(void) return 0; =20 err =3D kho_retrieve_subtree(KHO_TEST_FDT, &fdt_phys); - if (!err) - return kho_test_restore(fdt_phys); + if (!err) { + err =3D kho_test_restore(fdt_phys); + if (err) + pr_err("KHO restore failed\n"); + else + pr_info("KHO restore succeeded\n"); + + return err; + } =20 if (err !=3D -ENOENT) { pr_warn("failed to retrieve %s FDT: %d\n", KHO_TEST_FDT, err); base-commit: f0bfdc2b69f5c600b88ee484c01b213712c63d94 --=20 2.47.3