From 4902a7f18d6626110a2e47832d91785b049961e2 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 20 Nov 2025 15:36:39 +0000 Subject: [PATCH] virt: debug log when inode_same() fails If this fails with an error there's no log messages and tests typically don't log it either as they just check, so add a message to aid in debugging --- src/basic/virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/virt.c b/src/basic/virt.c index ad4b9aa3ea..55d7c51270 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -830,7 +830,7 @@ int running_in_chroot(void) { return -ENOSYS; } if (r < 0) - return r; + return log_debug_errno(r, "Failed to check if /proc/1/root and / are the same inode: %m"); return r == 0; }