X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Flib-logging.c;h=1730f6d09c93588f43f2388da579b0b820daa2e6;hb=d98421f2abfc5adab28ab7ee9b63537a6c7261cc;hp=88be5c769e6ac2b59fb953aa262bc2c5b508adfe;hpb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;p=babeltrace.git diff --git a/src/lib/lib-logging.c b/src/lib/lib-logging.c index 88be5c76..1730f6d0 100644 --- a/src/lib/lib-logging.c +++ b/src/lib/lib-logging.c @@ -21,8 +21,7 @@ #include #include "logging.h" -#include "assert-pre.h" -#include "assert-post.h" +#include "assert-cond.h" #include "value.h" #include "integer-range-set.h" #include "object-pool.h" @@ -58,7 +57,6 @@ #include "trace-ir/trace.h" #include "trace-ir/utils.h" #include "error.h" -#include "assert-pre.h" #define LIB_LOGGING_BUF_SIZE (4096 * 4) @@ -331,6 +329,8 @@ static inline void format_field_integer_extended(char **buf_ch, fmt = ", %svalue=%" PRIx64; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-nonliteral" if (field_class->common.type == BT_FIELD_CLASS_TYPE_SIGNED_INTEGER || field_class->common.type == BT_FIELD_CLASS_TYPE_SIGNED_ENUMERATION) { if (!fmt) { @@ -345,6 +345,7 @@ static inline void format_field_integer_extended(char **buf_ch, BUF_APPEND(fmt, PRFIELD(integer->value.u)); } +#pragma GCC diagnostic pop } static inline void format_field(char **buf_ch, bool extended,