Fix build error
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Wed, 15 Nov 2017 10:27:03 +0000 (11:27 +0100)
committerRonan Le Martret <ronan.lemartret@iot.bzh>
Wed, 15 Nov 2017 10:27:20 +0000 (11:27 +0100)
 * Some warning compile message is a error in yocto

Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
ucs2-afb/ucs_binding.c

index 4730967..e7a940b 100644 (file)
@@ -83,7 +83,7 @@ PUBLIC void UcsXml_CB_OnError(const char format[], uint16_t vargsCnt, ...) {
     va_start(argptr, vargsCnt);
     vsprintf(outbuf, format, argptr);
     va_end(argptr);
-    AFB_WARNING (outbuf);
+    AFB_WARNING ("%s", outbuf);
 }
 
 PUBLIC uint16_t UCSI_CB_OnGetTime(void *pTag) {
@@ -139,7 +139,7 @@ void UCSI_CB_OnUserMessage(void *pTag, bool isError, const char format[],
     vsprintf(outbuf, format, argptr);
     va_end(argptr);
     if (isError)
-        AFB_NOTICE (outbuf);
+        AFB_NOTICE ("%s",outbuf);
 }
 
 /** UCSI_Service cannot be called directly within UNICENS context, need to service stack through mainloop */