Browse Source

Assorted compile fixes.

sbg
px4dev 12 years ago
parent
commit
8cb583cf80
  1. 4
      apps/drivers/boards/px4fmu/px4fmu_init.c
  2. 4
      apps/px4/tests/tests.h
  3. 4
      apps/px4io/px4io.c
  4. 2
      apps/px4io/px4io.h
  5. 8
      apps/systemlib/err.c
  6. 3
      nuttx/include/nuttx/serial/serial.h

4
apps/drivers/boards/px4fmu/px4fmu_init.c

@ -79,13 +79,13 @@ @@ -79,13 +79,13 @@
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG
# define message(...) lib_lowprintf(__VA_ARGS__)
# define message(...) lowsyslog(__VA_ARGS__)
# else
# define message(...) printf(__VA_ARGS__)
# endif
#else
# ifdef CONFIG_DEBUG
# define message lib_lowprintf
# define message lowsyslog
# else
# define message printf
# endif

4
apps/px4/tests/tests.h

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
#ifdef CONFIG_CPP_HAVE_VARARGS
# ifdef CONFIG_DEBUG
# define message(...) lib_rawprintf(__VA_ARGS__)
# define message(...) lowsyslog(__VA_ARGS__)
# define msgflush()
# else
# define message(...) printf(__VA_ARGS__)
@ -56,7 +56,7 @@ @@ -56,7 +56,7 @@
# endif
#else
# ifdef CONFIG_DEBUG
# define message lib_rawprintf
# define message lowsyslog
# define msgflush()
# else
# define message printf

4
apps/px4io/px4io.c

@ -73,7 +73,7 @@ int user_start(int argc, char *argv[]) @@ -73,7 +73,7 @@ int user_start(int argc, char *argv[])
hrt_init();
/* print some startup info */
lib_lowprintf("\nPX4IO: starting\n");
lowsyslog("\nPX4IO: starting\n");
/* default all the LEDs to off while we start */
LED_AMBER(false);
@ -98,7 +98,7 @@ int user_start(int argc, char *argv[]) @@ -98,7 +98,7 @@ int user_start(int argc, char *argv[])
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 */
comms_main();

2
apps/px4io/px4io.h

@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
#ifdef DEBUG
# include <debug.h>
# define debug(fmt, args...) lib_lowprintf(fmt "\n", ##args)
# define debug(fmt, args...) lowsyslog(fmt "\n", ##args)
#else
# define debug(fmt, args...) do {} while(0)
#endif

8
apps/systemlib/err.c

@ -85,17 +85,17 @@ warnerr_core(int errcode, const char *fmt, va_list args) @@ -85,17 +85,17 @@ warnerr_core(int errcode, const char *fmt, va_list args)
fprintf(stderr, "\n");
#elif CONFIG_ARCH_LOWPUTC
lib_lowprintf("%s: ", getprogname());
lib_lowvprintf(fmt, args);
lowsyslog("%s: ", getprogname());
lowvyslog(fmt, args);
/* convenience as many parts of NuttX use negative errno */
if (errcode < 0)
errcode = -errcode;
if (errcode < NOCODE)
lib_lowprintf(": %s", strerror(errcode));
lowsyslog(": %s", strerror(errcode));
lib_lowprintf("\n");
lowsyslog("\n");
#endif
}

3
nuttx/include/nuttx/serial/serial.h

@ -220,7 +220,6 @@ struct uart_dev_s @@ -220,7 +220,6 @@ struct uart_dev_s
#ifndef CONFIG_DISABLE_POLL
struct pollfd *fds[CONFIG_SERIAL_NPOLLWAITERS];
#endif
<<<<<<< HEAD
/* Terminal control flags */
@ -230,8 +229,6 @@ struct uart_dev_s @@ -230,8 +229,6 @@ struct uart_dev_s
tcflag_t tc_lflag; /* Local modes */
#endif
=======
>>>>>>> 049c93446561c6ad3e59183c139f3916230ddee5
};
typedef struct uart_dev_s uart_dev_t;

Loading…
Cancel
Save