mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03: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:
parent
79127368d8
commit
9d72a3cf70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user