From: Ronan Le Martret Date: Wed, 15 Nov 2017 10:27:03 +0000 (+0100) Subject: Fix build error X-Git-Tag: 4.99.3~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=434f6ca4736b4bcfe8865824b6134f79417e594b;p=apps%2Fagl-service-unicens.git Fix build error * Some warning compile message is a error in yocto Signed-off-by: Ronan Le Martret --- diff --git a/ucs2-afb/ucs_binding.c b/ucs2-afb/ucs_binding.c index 4730967..e7a940b 100644 --- a/ucs2-afb/ucs_binding.c +++ b/ucs2-afb/ucs_binding.c @@ -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 */