mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 01:20:53 +00:00
loop: make 'Failed to configure loopback device' log message clearer
We print the very same log message for loopback block devices and for loopback network devices. Let's better be clear what kind it is.
This commit is contained in:
@@ -284,7 +284,7 @@ static int loop_configure(
|
||||
if (ioctl(fd, LOOP_SET_STATUS64, &info_copy) >= 0)
|
||||
break;
|
||||
if (errno != EAGAIN || ++n_attempts >= 64) {
|
||||
r = log_debug_errno(errno, "Failed to configure loopback device: %m");
|
||||
r = log_debug_errno(errno, "Failed to configure loopback block device: %m");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ int loopback_setup(void) {
|
||||
if (state_up.rcode == -EPERM && check_loopback(rtnl))
|
||||
return 0;
|
||||
|
||||
return log_warning_errno(state_up.rcode, "Failed to configure loopback device: %m");
|
||||
return log_warning_errno(state_up.rcode, "Failed to configure loopback network device: %m");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user