aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/samples/HelloWorld.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-06-30 17:17:56 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-07-05 15:54:40 +0200
commit1a741e7978380669b0a876a594d5d4b5691dcc80 (patch)
treecb6523fe69dfd7263b43034c271eba523f5ebff5 /bindings/samples/HelloWorld.c
parent7a21c8546d6762e18cd1bf5405e16f2195aa5f0a (diff)
Bindings V2: enforce prefix AFB_ to logging macros
This might break many codes but it is better in the long term. Change-Id: I346d13f0a6ef6b211edf25844489405351548299
Diffstat (limited to 'bindings/samples/HelloWorld.c')
-rw-r--r--bindings/samples/HelloWorld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/samples/HelloWorld.c b/bindings/samples/HelloWorld.c
index 77de24a2..89ed829c 100644
--- a/bindings/samples/HelloWorld.c
+++ b/bindings/samples/HelloWorld.c
@@ -361,7 +361,7 @@ static void exitnow (afb_req request)
if (!json_object_object_get_ex(query,"reason",&l))
l = NULL;
- REQ_NOTICE(request, "in phase of exiting with code %d, reason: %s", code, l ? json_object_get_string(l) : "unknown");
+ AFB_REQ_NOTICE(request, "in phase of exiting with code %d, reason: %s", code, l ? json_object_get_string(l) : "unknown");
afb_req_success(request, NULL, NULL);
exit(code);
}
@@ -393,19 +393,19 @@ static void broadcast(afb_req request)
static int preinit()
{
- NOTICE("hello binding comes to live");
+ AFB_NOTICE("hello binding comes to live");
return 0;
}
static int init()
{
- NOTICE("hello binding starting");
+ AFB_NOTICE("hello binding starting");
return 0;
}
static void onevent(const char *event, struct json_object *object)
{
- NOTICE("received event %s(%s)", event, json_object_to_json_string(object));
+ AFB_NOTICE("received event %s(%s)", event, json_object_to_json_string(object));
}
// NOTE: this sample does not use session to keep test a basic as possible