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
This commit is contained in:
Luca Boccassi
2025-11-20 15:36:39 +00:00
committed by Zbigniew Jędrzejewski-Szmek
parent 6629107404
commit 4902a7f18d

View File

@@ -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;
}