Commit acf63248 authored by Martin Jackson's avatar Martin Jackson Committed by Jean-Paul Saman

src/dvbpsi_private.h: use correct message function.

It seems that there was a bug introduced in renaming message
dvbpsi_message in dvbpsi_private.h. This is masked (in my environment
at least) by the configure script concluding that variadic macros are
not supported (i.e. ac_cv_cpp_variadic_macros=no) if -Werror is
included in the C flags, as the fragment in configure.ac used to
determine this generates a warning and thus failure.
Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 5557ace1
...@@ -45,11 +45,11 @@ extern uint32_t dvbpsi_crc32_table[]; ...@@ -45,11 +45,11 @@ extern uint32_t dvbpsi_crc32_table[];
void dvbpsi_message(dvbpsi_t *dvbpsi, const int level, const char *fmt, ...); void dvbpsi_message(dvbpsi_t *dvbpsi, const int level, const char *fmt, ...);
# define dvbpsi_error(hnd, src, str, x...) \ # define dvbpsi_error(hnd, src, str, x...) \
message(hnd, DVBPSI_MSG_ERROR, "libdvbpsi error ("src"): " str, ##x) dvbpsi_message(hnd, DVBPSI_MSG_ERROR, "libdvbpsi error (%s): " str, src, ##x)
# define dvbpsi_warning(hnd, src, str, x...) \ # define dvbpsi_warning(hnd, src, str, x...) \
message(hnd, DVBPSI_MSG_WARNING, "libdvbpsi warning ("src"): " str, ##x) dvbpsi_message(hnd, DVBPSI_MSG_WARNING, "libdvbpsi warning (%s): " str, src, ##x)
# define dvbpsi_debug(hnd, src, str, x...) \ # define dvbpsi_debug(hnd, src, str, x...) \
message(hnd, DVBPSI_MSG_DEBUG, "libdvbpsi debug ("src"): " str, ##x) dvbpsi_message(hnd, DVBPSI_MSG_DEBUG, "libdvbpsi debug (%s): " str, src, ##x)
#else #else
void dvbpsi_error(dvbpsi_t *dvbpsi, const char *src, const char *fmt, ...); void dvbpsi_error(dvbpsi_t *dvbpsi, const char *src, const char *fmt, ...);
void dvbpsi_warning(dvbpsi_t *dvbpsi, const char *src, const char *fmt, ...); void dvbpsi_warning(dvbpsi_t *dvbpsi, const char *src, const char *fmt, ...);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment