mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
debug: Reduce CONFIG_CPP_HAVE_VARARGS usage
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user