From 63ea15852243014dc7fd63a398e9986b3b9faaa9 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 5 Jun 2018 22:40:09 +0200 Subject: Fixed spelling of AFB_ReqSuccess Also change event message from notice to debug level. Change-Id: I8dc891343ee7f744ea0e3c07455806eaf34c1d7e Signed-off-by: Sebastien Douheret --- ctl-lib/afb-definitions.h | 2 +- ctl-lib/ctl-action.c | 2 +- ctl-lib/ctl-event.c | 2 +- ctl-lib/ctl-lua.c | 4 ++-- ctl-lib/ctl-plugin.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ctl-lib') diff --git a/ctl-lib/afb-definitions.h b/ctl-lib/afb-definitions.h index e4e71c7..721f0e8 100644 --- a/ctl-lib/afb-definitions.h +++ b/ctl-lib/afb-definitions.h @@ -141,4 +141,4 @@ #define AFB_ApiVerbs afb_verb_v2 #endif -#endif /* _AFB_DEFINITIONS_INCLUDE_ */ \ No newline at end of file +#endif /* _AFB_DEFINITIONS_INCLUDE_ */ diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c index f0a36c1..043fa58 100644 --- a/ctl-lib/ctl-action.c +++ b/ctl-lib/ctl-action.c @@ -86,7 +86,7 @@ int ActionExecOne(CtlSourceT *source, CtlActionT* action, json_object *queryJ) { if(wrap_json_unpack(returnJ, "{s:o}", "response", &toReturnJ)) AFB_ApiError(action->api, "ActionExecOne(Can't unpack response) uid=%s api=%s verb=%s args=%s", source->uid, action->exec.subcall.api, action->exec.subcall.verb, json_object_get_string(action->argsJ)); else - AFB_ReqSucess(source->request, toReturnJ, NULL); + AFB_ReqSuccess(source->request, toReturnJ, NULL); } break; } diff --git a/ctl-lib/ctl-event.c b/ctl-lib/ctl-event.c index 4e20bba..235be28 100644 --- a/ctl-lib/ctl-event.c +++ b/ctl-lib/ctl-event.c @@ -28,7 +28,7 @@ void CtrlDispatchApiEvent (AFB_ApiT apiHandle, const char *evtLabel, struct json_object *eventJ) { int idx = 0; CtlActionT* actions = NULL; - AFB_ApiNotice (apiHandle, "Received event=%s, query=%s", evtLabel, json_object_get_string(eventJ)); + AFB_ApiDebug (apiHandle, "Received event=%s, query=%s", evtLabel, json_object_get_string(eventJ)); // retrieve section config from api handle CtlConfigT *ctrlConfig = (CtlConfigT*) afb_dynapi_get_userdata(apiHandle); diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c index fe82317..4342464 100644 --- a/ctl-lib/ctl-lua.c +++ b/ctl-lib/ctl-lua.c @@ -31,7 +31,7 @@ #include "ctl-config.h" -#define LUA_FIST_ARG 2 // when using luaL_newlib calllback receive libtable as 1st arg +#define LUA_FIST_ARG 2 // when using luaL_newlib callback receive libtable as 1st arg #define LUA_MSG_MAX_LENGTH 2048 #define JSON_ERROR (json_object*)-1 @@ -393,7 +393,7 @@ static int LuaAfbSuccess(lua_State* luaState) { json_object *responseJ = LuaPopArgs(source, luaState, LUA_FIST_ARG + 1); if (responseJ == JSON_ERROR) return 1; - AFB_ReqSucess(source->request, responseJ, NULL); + AFB_ReqSuccess(source->request, responseJ, NULL); json_object_put(responseJ); return 0; diff --git a/ctl-lib/ctl-plugin.c b/ctl-lib/ctl-plugin.c index 5562b83..21c7296 100644 --- a/ctl-lib/ctl-plugin.c +++ b/ctl-lib/ctl-plugin.c @@ -252,7 +252,7 @@ static char *GetDefaultSearchPath(AFB_ApiT apiHandle) CTL_PLGN_len = envPath_len ? 0 : strlen(CONTROL_PLUGIN_PATH); /* Allocating with the size of binding root dir path + environment if found - * + 2 for the NULL terminating character and the additionnal separator + * + 2 for the NULL terminating character and the additional separator * between bindingPath and envPath concatenation. */ if(envPath) { -- cgit 1.2.3-korg