mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
dissect: use log_debug_errno() where appropriate
This commit is contained in:
parent
700e0d3d87
commit
58dfbfbdd6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user