From 14cbd240fff0120c5a6f1f4dd74438a6d302b675 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Mon, 11 May 2015 19:38:03 -0700 Subject: [PATCH] QuRT: added qurt_log Implement as a printf for now Signed-off-by: Mark Charlebois --- src/platforms/qurt/px4_layer/px4_qurt_impl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp b/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp index f878a8d140..48303ec651 100644 --- a/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp +++ b/src/platforms/qurt/px4_layer/px4_qurt_impl.cpp @@ -130,3 +130,13 @@ size_t strnlen(const char *s, size_t maxlen) return i; } + +void qurt_log(const char *fmt, ...) +{ + va_list args; + + va_start(args, fmt); + vprintf(fmt, args); + printf("\n"); +} +