--- 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 */