1
0
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:
Lennart Poettering 2022-08-29 15:10:16 +02:00
parent 79127368d8
commit 9d72a3cf70
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;