From: Luca Boccassi Date: Thu, 20 Nov 2025 15:36:39 +0000 (+0000) Subject: virt: debug log when inode_same() fails X-Git-Tag: v259-rc2~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4902a7f18d6626110a2e47832d91785b049961e2;p=thirdparty%2Fsystemd.git 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 --- diff --git a/src/basic/virt.c b/src/basic/virt.c index ad4b9aa3eaf..55d7c51270e 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; }