env: introduce OpenAMP debug
authorWendy Liang <jliang@xilinx.com>
Mon, 15 Aug 2016 22:28:21 +0000 (15:28 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:48 +0000 (22:01 -0700)
If OPENAMP_DEBUG is defined, enable to use openamp_dbg
to print debugging messages.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
lib/include/openamp/env.h

index a9fe72d4e64b868a4f921b8e93c6532a314089ec..56e8f56d4821b196a8675b871d48a245e272647c 100644 (file)
 
 #include <stdio.h>
 
+#ifdef OPENAMP_DEBUG
+#define openamp_dbg(format, ...) printf(format, ##__VA_ARGS__)
+#else
+#define openamp_dbg(...)
+#endif
+
 /**
  * env_sleep_msec
  *