mirror of
https://github.com/clearlinux/hyperstart.git
synced 2026-09-03 12:11:34 +00:00
fix incorrect error message
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
+2
-2
@@ -732,7 +732,7 @@ struct hyper_interface *hyper_parse_setup_interface(char *json, int length)
|
||||
realloc:
|
||||
toks = realloc(toks, toks_num * sizeof(jsmntok_t));
|
||||
if (toks == NULL) {
|
||||
fprintf(stderr, "allocate tokens for execcmd failed\n");
|
||||
fprintf(stderr, "allocate tokens for setup interface failed\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@@ -754,7 +754,7 @@ realloc:
|
||||
}
|
||||
|
||||
if (hyper_parse_interface(iface, json, toks) < 0) {
|
||||
fprintf(stderr, "allocate memory for interface failed\n");
|
||||
fprintf(stderr, "parse interface failed\n");
|
||||
goto fail;
|
||||
}
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user