Skip to contentSkip to conversation

reiserfscore: add support for register_printf_specifier

PATCH New Jeff Mahoney 1 participant 1 message Oct 11, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 9/10 reiserfscore: add support for register_printf_specifier

register_printf_modifier is causing build warnings complaining that it is deprecated. This patch adds support for register_printf_specifier and uses it if it's present. Otherwise, it will fall back to register_printf_modifier.

---
 configure.in          |    9 +++++--
 reiserfscore/prints.c |   70 ++++++++++++++++---------------------------------
 2 files changed, 30 insertions(+), 49 deletions(-)
configure.in +7 -2
index dd3e353..5f172c2 100644
@@ -104,8 +104,13 @@ AC_PROG_GCC_TRADITIONAL
 AC_FUNC_MEMCMP
 AC_FUNC_STRFTIME
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(strerror strstr strtol register_printf_function statfs getmntent\
-	       hasmntopt memset time uname strptime ctime_r)
+AC_CHECK_FUNCS(strerror strstr strtol statfs getmntent hasmntopt memset time \
+	       uname strptime ctime_r register_printf_modifier \
+	       register_printf_specifier)
+
+if test -z "${ac_cv_func_register_printf_function}" -a -z "${ac_cv_func_register_printf_specifier}"; then
+	AC_MSG_ERROR(reiserfsprogs requires a method to add printf modifiers)
+fi
 
 
 dnl Never enable this. It is for debugging only
reiserfscore/prints.c +23 -47

82 lines not on this page · raw message

Signature · 1 line
1.7.10.4