[PATCH 6/6] partitions: gpt: log a message when partition table refreshed

Sascha Hauer s.hauer at pengutronix.de
Wed Jul 1 02:27:39 PDT 2026


Inform the user when the partition table has been changed as that's a
very useful information.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/partitions/efi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/partitions/efi.c b/common/partitions/efi.c
index 04f7117389..ab920e645a 100644
--- a/common/partitions/efi.c
+++ b/common/partitions/efi.c
@@ -82,6 +82,8 @@ static int gpt_refresh_one(struct block_device *blk)
 	if (ret)
 		dev_err(blk->dev, "Refreshing partition table failed: %pe\n",
 			ERR_PTR(ret));
+	else
+		dev_info(blk->dev, "Refreshed partition table\n");
 
 	return ret;
 }

-- 
2.47.3




More information about the barebox mailing list