From: Andrew Beekhof <andrew(a)beekhof.net>
Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
include/qb/qblog.h | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/include/qb/qblog.h b/include/qb/qblog.h
index b996c87..1f5f00c 100644
--- a/include/qb/qblog.h
+++ b/include/qb/qblog.h
@@ -312,10 +312,8 @@ void qb_log_from_external_source_va(const char *function,
} while(0)
#else
#define qb_logt(priority, tags, fmt, args...) do { \
- char _log_buf_[QB_LOG_MAX_LEN]; \
- snprintf(_log_buf_, QB_LOG_MAX_LEN, fmt, ##args); \
qb_log_from_external_source(__func__, __FILE__, fmt, priority, \
- __LINE__, tags, _log_buf_); \
+ __LINE__, tags, ##args); \
} while(0)
#endif /* QB_HAVE_ATTRIBUTE_SECTION */
--
1.7.7.4
Show replies by date