summaryrefslogtreecommitdiffstats
path: root/net/ifup.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ifup.c')
-rw-r--r--net/ifup.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/ifup.c b/net/ifup.c
index 7b63136296..b259a975dc 100644
--- a/net/ifup.c
+++ b/net/ifup.c
@@ -70,14 +70,18 @@ int ifup(const char *name, unsigned flags)
cmd_discover = asprintf("/env/network/%s-discover", name);
ret = run_command(cmd);
- if (ret)
+ if (ret) {
+ pr_err("Running '%s' failed with %d\n", cmd, ret);
goto out;
+ }
ret = stat(cmd_discover, &s);
if (!ret) {
ret = run_command(cmd_discover);
- if (ret)
+ if (ret) {
+ pr_err("Running '%s' failed with %d\n", cmd, ret);
goto out;
+ }
}
dev = get_device_by_name(name);