summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt/dlt_user_macros.h')
-rw-r--r--include/dlt/dlt_user_macros.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index e1968a2..d50b335 100644
--- a/include/dlt/dlt_user_macros.h
+++ b/include/dlt/dlt_user_macros.h
@@ -121,6 +121,12 @@
(void)dlt_unregister_app();} while(0)
/**
+ * Unregister application and flush the logs buffered in startup buffer if any.
+ */
+#define DLT_UNREGISTER_APP_FLUSH_BUFFERED_LOGS() do{\
+ (void)dlt_unregister_app_flush_buffered_logs();} while(0)
+
+/**
* Register context (with default log level and default trace status)
* @param CONTEXT object containing information about one special logging context
* @param CONTEXTID context id with maximal four characters