Unverified Commit 04a7c46e by Christian Brauner Committed by Stéphane Graber

travis: coverity gets confused about the %m printf extension in glibc

parent da23a3c5
...@@ -37,6 +37,6 @@ addons: ...@@ -37,6 +37,6 @@ addons:
# Where email notification of build analysis results will be sent # Where email notification of build analysis results will be sent
notification_email: christian.brauner@ubuntu.com notification_email: christian.brauner@ubuntu.com
build_command_prepend: "./autogen.sh && mkdir build && cd build && ../configure --enable-tests --with-distro=unknown --disable-rpath --enable-tests --enable-memfd-rexec --enable-seccomp --enable-static --enable-werror" build_command_prepend: "./autogen.sh && mkdir build && cd build && ../configure --enable-coverity-build --enable-tests --with-distro=unknown --disable-rpath --enable-tests --enable-memfd-rexec --enable-seccomp --enable-static --enable-werror"
build_command: "make -j4" build_command: "make -j4"
branch_pattern: master branch_pattern: master
...@@ -767,6 +767,11 @@ AC_ARG_ENABLE([thread-safety], ...@@ -767,6 +767,11 @@ AC_ARG_ENABLE([thread-safety],
[enable_thread_safety=$enableval], [enable_thread_safety=yes]) [enable_thread_safety=$enableval], [enable_thread_safety=yes])
AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"]) AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"])
AC_ARG_ENABLE([coverity-build],
[AS_HELP_STRING([--enable-coverity-build], [handle coverity builds [default=no]])],
[enable_coverity_build=$enableval], [enable_coverity_build=yes])
AM_CONDITIONAL([ENABLE_COVERITY_BUILD], [test "x$enable_coverity_build" = "xyes"])
AC_ARG_ENABLE([dlog], AC_ARG_ENABLE([dlog],
[AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])], [AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])],
[enable_dlog=$enableval], [enable_dlog=no]) [enable_dlog=$enableval], [enable_dlog=no])
......
...@@ -391,7 +391,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -391,7 +391,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
LXC_FATAL(&locinfo, format, ##__VA_ARGS__); \ LXC_FATAL(&locinfo, format, ##__VA_ARGS__); \
} while (0) } while (0)
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSTRACE(format, ...) \ #define SYSTRACE(format, ...) \
TRACE("%m - " format, ##__VA_ARGS__) TRACE("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -402,7 +402,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -402,7 +402,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSDEBUG(format, ...) \ #define SYSDEBUG(format, ...) \
DEBUG("%m - " format, ##__VA_ARGS__) DEBUG("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -414,7 +414,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -414,7 +414,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSINFO(format, ...) \ #define SYSINFO(format, ...) \
INFO("%m - " format, ##__VA_ARGS__) INFO("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -425,7 +425,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -425,7 +425,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSNOTICE(format, ...) \ #define SYSNOTICE(format, ...) \
NOTICE("%m - " format, ##__VA_ARGS__) NOTICE("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -436,7 +436,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -436,7 +436,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSWARN(format, ...) \ #define SYSWARN(format, ...) \
WARN("%m - " format, ##__VA_ARGS__) WARN("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -447,7 +447,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -447,7 +447,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define SYSERROR(format, ...) \ #define SYSERROR(format, ...) \
ERROR("%m - " format, ##__VA_ARGS__) ERROR("%m - " format, ##__VA_ARGS__)
#else #else
...@@ -458,7 +458,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -458,7 +458,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define CMD_SYSERROR(format, ...) \ #define CMD_SYSERROR(format, ...) \
fprintf(stderr, "%s: %d: %s - %m - " format "\n", __FILE__, __LINE__, \ fprintf(stderr, "%s: %d: %s - %m - " format "\n", __FILE__, __LINE__, \
__func__, ##__VA_ARGS__); __func__, ##__VA_ARGS__);
...@@ -471,7 +471,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \ ...@@ -471,7 +471,7 @@ __lxc_unused static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0) } while (0)
#endif #endif
#if HAVE_M_FORMAT #if HAVE_M_FORMAT && !ENABLE_COVERITY_BUILD
#define CMD_SYSINFO(format, ...) \ #define CMD_SYSINFO(format, ...) \
printf("%s: %d: %s - %m - " format "\n", __FILE__, __LINE__, __func__, \ printf("%s: %d: %s - %m - " format "\n", __FILE__, __LINE__, __func__, \
##__VA_ARGS__); ##__VA_ARGS__);
......
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