aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-05 22:40:09 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-06-07 07:23:23 +0000
commit6838dff13293746e5855c6e3d1031aea150a6d76 (patch)
treebf5c7d232bb4ea4f2517b817ac5c3ecd62638867
parent5b079d4c23228dc98998c5603e6a9aac07b04164 (diff)
Fixed spelling of AFB_ReqSuccess
Also change event message from notice to debug level. Change-Id: I8dc891343ee7f744ea0e3c07455806eaf34c1d7e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--ctl-lib/afb-definitions.h2
-rw-r--r--ctl-lib/ctl-action.c2
-rw-r--r--ctl-lib/ctl-event.c2
-rw-r--r--ctl-lib/ctl-lua.c4
-rw-r--r--ctl-lib/ctl-plugin.c2
5 files changed, 6 insertions, 6 deletions
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 75ad551..20a608e 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) {