From 9ebefafde06a6a7001e8fa631aedc91cf1dc5af3 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 5 Oct 2009 19:43:46 +0000 Subject: [PATCH] Make nightlytest only for arm. Silent some warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3034 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/net/nmea.c | 3 ++- bertos/net/nmea_test.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bertos/net/nmea.c b/bertos/net/nmea.c index 29f99ee1..d3937282 100644 --- a/bertos/net/nmea.c +++ b/bertos/net/nmea.c @@ -33,6 +33,7 @@ * * \author Daniele Basile * + * notest:avr */ #include "nmea.h" @@ -177,7 +178,7 @@ static time_t timestampToSec(uint32_t time_stamp, uint32_t date_stamp) memset(&tmr, 0, sizeof(tmr)); memset(&date, 0, sizeof(date)); - LOG_INFO("time_s[%u],date[%u]\n", time_stamp, date_stamp); + LOG_INFO("time_s[%lu],date[%lu]\n", (long)time_stamp, (long)date_stamp); uint32_t res = time_stamp / 1000; uint32_t all = time_stamp; msec = all - res * 1000; diff --git a/bertos/net/nmea_test.c b/bertos/net/nmea_test.c index 0e0a65df..f95125d0 100644 --- a/bertos/net/nmea_test.c +++ b/bertos/net/nmea_test.c @@ -33,6 +33,8 @@ * \brief NMEA parser test. * * \author Daniele Basile + * + * notest:avr */ #include "nmea.h" @@ -82,7 +84,7 @@ static void gpgga_callout(nmeap_context_t *context, void *data, void *user_data) (void)user_data; NmeaGga *gga = (NmeaGga *)data; - kprintf("found GPGGA message %d %d %d %lu %d %d %d %d\n", + kprintf("found GPGGA message %ld %ld %d %lu %d %d %d %d\n", gga->latitude, gga->longitude, gga->altitude, @@ -103,7 +105,7 @@ static void gprmc_callout(nmeap_context_t *context, void *data, void *user_data) (void)user_data; NmeaRmc *rmc = (NmeaRmc *)data; - kprintf("found GPRMC Message %lu %c %d %d %d %d %d\n", + kprintf("found GPRMC Message %lu %c %d %ld %ld %d %d\n", rmc->time, rmc->warn, rmc->latitude, -- 2.25.1