dissect: use log_debug_errno() where appropriate

This commit is contained in:
Lennart Poettering
2020-05-18 18:41:56 +02:00
parent 700e0d3d87
commit 58dfbfbdd6
+3 -4
View File
@@ -75,10 +75,9 @@ int probe_filesystem(const char *node, char **ret_fstype) {
log_debug("No type detected on partition %s", node);
goto not_found;
}
if (r == -2) {
log_debug("Results ambiguous for partition %s", node);
return -EUCLEAN;
}
if (r == -2)
return log_debug_errno(SYNTHETIC_ERRNO(EUCLEAN),
"Results ambiguous for partition %s", node);
if (r != 0)
return errno_or_else(EIO);