mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
nspawn: use the just returned errno in the log message
Use the returned errno even though we are going to ignore it, otherwise the log message is just confusing: config.json:119:13: Failed to resolve device node 4:2, ignoring: Success
This commit is contained in:
parent
ec0d7e0dd5
commit
e5c275fedc
@ -874,7 +874,7 @@ static int oci_devices(const char *name, JsonVariant *v, JsonDispatchFlags flags
|
|||||||
/* Suppress a couple of implicit device nodes */
|
/* Suppress a couple of implicit device nodes */
|
||||||
r = devname_from_devnum(node->mode, makedev(node->major, node->minor), &path);
|
r = devname_from_devnum(node->mode, makedev(node->major, node->minor), &path);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
json_log(e, flags|JSON_DEBUG, 0, "Failed to resolve device node %u:%u, ignoring: %m", node->major, node->minor);
|
json_log(e, flags|JSON_DEBUG, r, "Failed to resolve device node %u:%u, ignoring: %m", node->major, node->minor);
|
||||||
else {
|
else {
|
||||||
if (PATH_IN_SET(path,
|
if (PATH_IN_SET(path,
|
||||||
"/dev/null",
|
"/dev/null",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user