tree-wise: several cleanups for logging
- drop unnecessary SYNTHETIC_ERRNO() when the logger does not propagate error code, - drop unnecessary '%m' in error message when the error code is specified with SYNTHETIC_ERRNO(), - add missing full stop at the end of log message, - use RET_GATHER(), - add missing ", ignoring.", - upeercase the first letter, etc., etc...
This commit is contained in:
@@ -40,7 +40,7 @@ int read_partition_info(
|
||||
|
||||
p = fdisk_table_get_partition(t, i);
|
||||
if (!p)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to read partition metadata: %m");
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to read partition metadata.");
|
||||
|
||||
if (fdisk_partition_is_used(p) <= 0) {
|
||||
*ret = (PartitionInfo) PARTITION_INFO_NULL;
|
||||
|
||||
Reference in New Issue
Block a user