From 977eb2de17820e8160c1f024e1922a62ce26e802 Mon Sep 17 00:00:00 2001 From: Kabir Mohammed Date: Mon, 30 May 2016 13:12:15 +0530 Subject: [PATCH] Fix missing dprintf on QURT --- src/modules/systemlib/print_load_posix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/systemlib/print_load_posix.c b/src/modules/systemlib/print_load_posix.c index 0ac8a615e1..f47c466103 100644 --- a/src/modules/systemlib/print_load_posix.c +++ b/src/modules/systemlib/print_load_posix.c @@ -54,6 +54,11 @@ #include #endif +#ifdef __PX4_QURT +// dprintf is not available on QURT. Use the usual output to mini-dm. +#define dprintf(_fd, _text, ...) ((_fd) == 1 ? PX4_INFO((_text), ##__VA_ARGS__) : (void)(_fd)) +#endif + extern struct system_load_s system_load; #define CL "\033[K" // clear line