Assorted compile fixes.

This commit is contained in:
px4dev
2013-02-06 23:50:55 -08:00
parent 0c7c32ce95
commit 8cb583cf80
6 changed files with 11 additions and 14 deletions
+2 -2
View File
@@ -79,13 +79,13 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG # ifdef CONFIG_DEBUG
# define message(...) lib_lowprintf(__VA_ARGS__) # define message(...) lowsyslog(__VA_ARGS__)
# else # else
# define message(...) printf(__VA_ARGS__) # define message(...) printf(__VA_ARGS__)
# endif # endif
#else #else
# ifdef CONFIG_DEBUG # ifdef CONFIG_DEBUG
# define message lib_lowprintf # define message lowsyslog
# else # else
# define message printf # define message printf
# endif # endif
+2 -2
View File
@@ -48,7 +48,7 @@
#ifdef CONFIG_CPP_HAVE_VARARGS #ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG # ifdef CONFIG_DEBUG
# define message(...) lib_rawprintf(__VA_ARGS__) # define message(...) lowsyslog(__VA_ARGS__)
# define msgflush() # define msgflush()
# else # else
# define message(...) printf(__VA_ARGS__) # define message(...) printf(__VA_ARGS__)
@@ -56,7 +56,7 @@
# endif # endif
#else #else
# ifdef CONFIG_DEBUG # ifdef CONFIG_DEBUG
# define message lib_rawprintf # define message lowsyslog
# define msgflush() # define msgflush()
# else # else
# define message printf # define message printf
+2 -2
View File
@@ -73,7 +73,7 @@ int user_start(int argc, char *argv[])
hrt_init(); hrt_init();
/* print some startup info */ /* print some startup info */
lib_lowprintf("\nPX4IO: starting\n"); lowsyslog("\nPX4IO: starting\n");
/* default all the LEDs to off while we start */ /* default all the LEDs to off while we start */
LED_AMBER(false); LED_AMBER(false);
@@ -98,7 +98,7 @@ int user_start(int argc, char *argv[])
struct mallinfo minfo = mallinfo(); struct mallinfo minfo = mallinfo();
lib_lowprintf("free %u largest %u\n", minfo.mxordblk, minfo.fordblks); lowsyslog("free %u largest %u\n", minfo.mxordblk, minfo.fordblks);
/* we're done here, go run the communications loop */ /* we're done here, go run the communications loop */
comms_main(); comms_main();
+1 -1
View File
@@ -58,7 +58,7 @@
#ifdef DEBUG #ifdef DEBUG
# include <debug.h> # include <debug.h>
# define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args) # define debug(fmt, args...) lowsyslog(fmt "\n", ##args)
#else #else
# define debug(fmt, args...) do {} while(0) # define debug(fmt, args...) do {} while(0)
#endif #endif
+4 -4
View File
@@ -85,17 +85,17 @@ warnerr_core(int errcode, const char *fmt, va_list args)
fprintf(stderr, "\n"); fprintf(stderr, "\n");
#elif CONFIG_ARCH_LOWPUTC #elif CONFIG_ARCH_LOWPUTC
lib_lowprintf("%s: ", getprogname()); lowsyslog("%s: ", getprogname());
lib_lowvprintf(fmt, args); lowvyslog(fmt, args);
/* convenience as many parts of NuttX use negative errno */ /* convenience as many parts of NuttX use negative errno */
if (errcode < 0) if (errcode < 0)
errcode = -errcode; errcode = -errcode;
if (errcode < NOCODE) if (errcode < NOCODE)
lib_lowprintf(": %s", strerror(errcode)); lowsyslog(": %s", strerror(errcode));
lib_lowprintf("\n"); lowsyslog("\n");
#endif #endif
} }
-3
View File
@@ -220,7 +220,6 @@ struct uart_dev_s
#ifndef CONFIG_DISABLE_POLL #ifndef CONFIG_DISABLE_POLL
struct pollfd *fds[CONFIG_SERIAL_NPOLLWAITERS]; struct pollfd *fds[CONFIG_SERIAL_NPOLLWAITERS];
#endif #endif
<<<<<<< HEAD
/* Terminal control flags */ /* Terminal control flags */
@@ -230,8 +229,6 @@ struct uart_dev_s
tcflag_t tc_lflag; /* Local modes */ tcflag_t tc_lflag; /* Local modes */
#endif #endif
=======
>>>>>>> 049c93446561c6ad3e59183c139f3916230ddee5
}; };
typedef struct uart_dev_s uart_dev_t; typedef struct uart_dev_s uart_dev_t;