From 0896a874c7187020cb2d14225aed3c093d2a7154 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Mon, 23 May 2016 19:35:48 +0800 Subject: [PATCH] fix incorrect error message Signed-off-by: Gao feng --- src/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse.c b/src/parse.c index 2ff4557..0ccd337 100644 --- a/src/parse.c +++ b/src/parse.c @@ -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: