Use unsigned long instead of uint32_t to avoid compiler warnings with the printfs

This commit is contained in:
Adam Dunkels 2015-10-04 22:30:57 +02:00 committed by Simon Duquennoy
parent 8a6ae7c651
commit 1ed9a20fdb

View file

@ -48,15 +48,15 @@
struct powertrace_sniff_stats { struct powertrace_sniff_stats {
struct powertrace_sniff_stats *next; struct powertrace_sniff_stats *next;
uint32_t num_input, num_output; unsigned long num_input, num_output;
uint32_t input_txtime, input_rxtime; unsigned long input_txtime, input_rxtime;
uint32_t output_txtime, output_rxtime; unsigned long output_txtime, output_rxtime;
#if NETSTACK_CONF_WITH_IPV6 #if NETSTACK_CONF_WITH_IPV6
uint16_t proto; /* includes proto + possibly flags */ uint16_t proto; /* includes proto + possibly flags */
#endif #endif
uint16_t channel; uint16_t channel;
uint32_t last_input_txtime, last_input_rxtime; unsigned long last_input_txtime, last_input_rxtime;
uint32_t last_output_txtime, last_output_rxtime; unsigned long last_output_txtime, last_output_rxtime;
}; };
#define INPUT 1 #define INPUT 1
@ -72,17 +72,17 @@ PROCESS(powertrace_process, "Periodic power output");
void void
powertrace_print(char *str) powertrace_print(char *str)
{ {
static uint32_t last_cpu, last_lpm, last_transmit, last_listen; static unsigned long last_cpu, last_lpm, last_transmit, last_listen;
static uint32_t last_idle_transmit, last_idle_listen; static unsigned long last_idle_transmit, last_idle_listen;
uint32_t cpu, lpm, transmit, listen; unsigned long cpu, lpm, transmit, listen;
uint32_t all_cpu, all_lpm, all_transmit, all_listen; unsigned long all_cpu, all_lpm, all_transmit, all_listen;
uint32_t idle_transmit, idle_listen; unsigned long idle_transmit, idle_listen;
uint32_t all_idle_transmit, all_idle_listen; unsigned long all_idle_transmit, all_idle_listen;
static uint32_t seqno; static unsigned long seqno;
uint32_t time, all_time, radio, all_radio; unsigned long time, all_time, radio, all_radio;
struct powertrace_sniff_stats *s; struct powertrace_sniff_stats *s;