Commit d929cda3 authored by Karel Hanák's avatar Karel Hanák
Browse files

shape: added patch to enable debug tracing in release build


Signed-off-by: Karel Hanák's avatarKarel Hanák <karel.hanak@iqrf.org>
parent 1b47e5a0
From 596b53b51182d63189dba074630876f80500f4fb Mon Sep 17 00:00:00 2001
From: Karel Hanak <karel.hanak@iqrf.org>
Date: Sun, 23 May 2021 13:02:31 +0200
Subject: [PATCH] Patch: enable debug tracing in release build
Signed-off-by: Karel Hanák <karel.hanak@iqrf.org>
---
include/TraceMacros.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/TraceMacros.h b/include/TraceMacros.h
index 7bcd804..f503d0e 100644
--- a/include/TraceMacros.h
+++ b/include/TraceMacros.h
@@ -52,14 +52,14 @@
#define TRC_ERROR(msg) TRC_MSG(shape::TraceLevel::Error, TRC_CHANNEL, TRC_MNAME, msg)
#define TRC_WARNING(msg) TRC_MSG(shape::TraceLevel::Warning, TRC_CHANNEL, TRC_MNAME, msg)
#define TRC_INFORMATION(msg) TRC_MSG(shape::TraceLevel::Information, TRC_CHANNEL, TRC_MNAME, msg)
-#define TRC_DEBUG(msg)
+#define TRC_DEBUG(msg) TRC_MSG(shape::TraceLevel::Debug, TRC_CHANNEL, TRC_MNAME, msg)
#define TRC_FUNCTION_ENTER(msg)
#define TRC_FUNCTION_LEAVE(msg)
#define TRC_ERROR_CHN(channel, mname, msg) TRC_MSG(shape::TraceLevel::Error, channel, mname, msg)
#define TRC_WARNING_CHN(channel, mname, msg) TRC_MSG(shape::TraceLevel::Warning, channel, mname, msg)
#define TRC_INFORMATION_CHN(channel, mname, msg) TRC_MSG(shape::TraceLevel::Information, channel, mname, msg)
-#define TRC_DEBUG_CHN(channel, mname, msg)
+#define TRC_DEBUG_CHN(channel, mname, msg) TRC_MSG(shape::TraceLevel::Debug, channel, mname, msg)
#define TRC_FUNCTION_ENTER_CHN(channel, mname, msg)
#define TRC_FUNCTION_LEAVE_CHN(channel, mname, msg)
--
2.25.1
......@@ -11,6 +11,7 @@ SRC_URI = "git://github.com/logimic/shape.git;protocol=https;branch=master;tag=v
file://0001-wip-First-working-version.patch \
file://0002-wip1-stilll-working.patch \
file://0003-Update-rapidjson-to-8f4c021fa2f1e001d2376095928fc053.patch \
file://0004-Patch-enable-debug-tracing-in-release-build.patch \
"
S = "${WORKDIR}/git"
......
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