diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-12 09:05:48 +0100 |
---|---|---|
committer | David Sidrane <david_s5@nscdg.com> | 2015-04-07 06:07:30 -1000 |
commit | 626477e4d6f5fdda353272f3cf60d5f98c560500 (patch) | |
tree | 8ba7c67b12d35279b439f8d54085e957284c7026 | |
parent | 828ee93585fc518cb63a426e58a612bf629eb25a (diff) | |
download | px4-firmware-626477e4d6f5fdda353272f3cf60d5f98c560500.tar.gz px4-firmware-626477e4d6f5fdda353272f3cf60d5f98c560500.tar.bz2 px4-firmware-626477e4d6f5fdda353272f3cf60d5f98c560500.zip |
IO driver serial layer: Update syslog API
-rw-r--r-- | src/drivers/px4io/px4io_serial.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/px4io/px4io_serial.cpp b/src/drivers/px4io/px4io_serial.cpp index 42d87f7e5..16d917ef5 100644 --- a/src/drivers/px4io/px4io_serial.cpp +++ b/src/drivers/px4io/px4io_serial.cpp @@ -295,7 +295,7 @@ PX4IO_serial::ioctl(unsigned operation, unsigned &arg) case 1: /* XXX magic number - test operation */ switch (arg) { case 0: - lowsyslog("test 0\n"); + lowsyslog(LOG_INFO, "test 0\n"); /* kill DMA, this is a PIO test */ stm32_dmastop(_tx_dma); @@ -319,7 +319,7 @@ PX4IO_serial::ioctl(unsigned operation, unsigned &arg) fails++; if (count >= 5000) { - lowsyslog("==== test 1 : %u failures ====\n", fails); + lowsyslog(LOG_INFO, "==== test 1 : %u failures ====\n", fails); perf_print_counter(_pc_txns); perf_print_counter(_pc_dmasetup); perf_print_counter(_pc_retries); @@ -336,7 +336,7 @@ PX4IO_serial::ioctl(unsigned operation, unsigned &arg) return 0; } case 2: - lowsyslog("test 2\n"); + lowsyslog(LOG_INFO, "test 2\n"); return 0; } default: @@ -558,7 +558,7 @@ PX4IO_serial::_wait_complete() } /* we might? see this for EINTR */ - lowsyslog("unexpected ret %d/%d\n", ret, errno); + lowsyslog(LOG_ERR, "unexpected ret %d/%d\n", ret, errno); } /* reset DMA status */ |