debug: Reduce CONFIG_CPP_HAVE_VARARGS usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-05-04 18:55:11 +08:00
committed by patacongo
parent 6604cdb3f2
commit d9d2fc0d0a
24 changed files with 387 additions and 1179 deletions
+8 -19
View File
@@ -181,25 +181,13 @@
/* Debug */
#ifdef CONFIG_VNCSERVER_UPDATE_DEBUG
# ifdef CONFIG_CPP_HAVE_VARARGS
# define upderr(format, ...) _err(format, ##__VA_ARGS__)
# define updinfo(format, ...) _info(format, ##__VA_ARGS__)
# define updinfo(format, ...) _info(format, ##__VA_ARGS__)
# else
# define upderr _err
# define updwarn _warn
# define updinfo _info
# endif
# define upderr _err
# define updwarn _warn
# define updinfo _info
#else
# ifdef CONFIG_CPP_HAVE_VARARGS
# define upderr(x...)
# define updwarn(x...)
# define updinfo(x...)
# else
# define upderr (void)
# define updwarn (void)
# define updinfo (void)
# endif
# define upderr _none
# define updwarn _none
# define updinfo _none
#endif
/****************************************************************************
@@ -583,7 +571,8 @@ uint32_t vnc_convert_rgb32_888(lfb_color_t rgb);
*
****************************************************************************/
int vnc_colors(FAR struct vnc_session_s *session, FAR struct nxgl_rect_s *rect,
int vnc_colors(FAR struct vnc_session_s *session,
FAR struct nxgl_rect_s *rect,
unsigned int maxcolors, FAR lfb_color_t *colors);
#undef EXTERN