include/unix/applicfg.h
changeset 454 bc000083297a
parent 391 7802a7d5584f
child 749 5cbb8e9ad67c
--- a/include/unix/applicfg.h	Tue Apr 29 13:54:23 2008 +0200
+++ b/include/unix/applicfg.h	Fri May 02 17:30:37 2008 +0200
@@ -76,11 +76,15 @@
 
 /* Definition of error and warning macros */
 /* -------------------------------------- */
-#ifndef __KERNEL__
+#ifdef __KERNEL__
+#	define MSG(...) printk (__VA_ARGS__)
+#elif defined USE_RTAI
+#	define MSG(...) /*rt_printk (__VA_ARGS__)*/
+#elif defined USE_XENO
+#	define MSG(...)
+#else
 #	include <stdio.h>
 #	define MSG(...) printf (__VA_ARGS__)
-#else
-#	define MSG(...) printk (__VA_ARGS__)
 #endif
 
 /* Definition of MSG_ERR */