1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #3322 from gebart/pr/add-missing-inttypes-includes

Add missing inttypes.h includes
This commit is contained in:
Oleg Hahm 2015-07-07 16:49:39 +02:00
commit 705e70e6c6
31 changed files with 78 additions and 9 deletions

View File

@ -38,6 +38,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
volatile int sched_num_threads = 0;
volatile unsigned int sched_context_switch_request;

View File

@ -24,10 +24,10 @@
extern "C" {
#endif
#define PRIo64 "oll" /**< Format string for octal 64-bit number */
#define PRIx64 "xll" /**< Format string for hexadecimal 64-bit number */
#define PRIu64 "ull" /**< Format string for unsigned 64-bit number */
#define PRId64 "dll" /**< Format string for signed 64-bit number */
#define PRIo64 "llo" /**< Format string for octal 64-bit number */
#define PRIx64 "llx" /**< Format string for hexadecimal 64-bit number */
#define PRIu64 "llu" /**< Format string for unsigned 64-bit number */
#define PRId64 "lld" /**< Format string for signed 64-bit number */
#ifdef __cplusplus
}

View File

@ -19,6 +19,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "kernel.h"
#include "net/ng_netbase.h"

View File

@ -20,6 +20,8 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "vtimer.h"
#include "thread.h"
#include "net_if.h"

View File

@ -37,6 +37,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
#define _EVENT_RX_STARTED (1)
#define _EVENT_RX_COMPLETE (2)
#define _RX_BUF_SIZE (16U * sizeof(ng_pktsnip_t *))

View File

@ -20,6 +20,8 @@
#if RIOT_CCN_APPSERVER
#include <inttypes.h>
#include "msg.h"
#include "thread.h"
#include "ccnl-riot-compat.h"

View File

@ -13,6 +13,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "net/ng_netif.h"
#include "net/ng_netif/hdr.h"

View File

@ -26,6 +26,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
net_if_t interfaces[NET_IF_MAX];
#if ENABLE_DEBUG

View File

@ -27,6 +27,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
/**
* @brief Function called by the device driver on device events
*

View File

@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <errno.h>
#include "thread.h"
#include "mutex.h"

View File

@ -22,6 +22,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
ng_pktsnip_t *ng_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq,
uint8_t *data, size_t data_len)
{

View File

@ -13,6 +13,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "net/ng_ipv6/hdr.h"

View File

@ -29,6 +29,9 @@
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu8 etc. */
#include <inttypes.h>
static char addr_str[NG_IPV6_ADDR_MAX_STR_LEN];
#endif

View File

@ -32,6 +32,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
static ng_ipv6_netif_t ipv6_ifs[NG_NETIF_NUMOF];
#if ENABLE_DEBUG

View File

@ -34,7 +34,10 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if (ENABLE_DEBUG)
#if ENABLE_DEBUG
/* For PRIu8 etc. */
#include <inttypes.h>
static char addr_str[NG_IPV6_ADDR_MAX_STR_LEN];
#endif

View File

@ -25,6 +25,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
static uint16_t _tag;
static inline uint16_t _floor8(uint16_t length)

View File

@ -25,6 +25,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
static kernel_pid_t _pid = KERNEL_PID_UNDEF;
#if ENABLE_DEBUG

View File

@ -13,6 +13,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "od.h"
#include "net/ng_ipv6/hdr.h"

View File

@ -27,6 +27,11 @@
#define ENABLE_DEBUG (0)
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
#define VERBOSE_DEBUG (0)
#if VERBOSE_DEBUG
#define VDEBUG(...) AODV_DEBUG(__VA_ARGS__)

View File

@ -17,6 +17,9 @@
* @author Lotte Steenbrink <lotte.steenbrink@fu-berlin.de>
*/
#include <stdio.h>
#include <inttypes.h>
#include "routingtable.h"
#include "aodv_debug.h"

View File

@ -19,6 +19,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "net/ng_udp.h"

View File

@ -17,6 +17,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#ifdef MODULE_NG_ICMPV6

View File

@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "l2_ping.h"
#include "transceiver.h"

View File

@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "thread.h"
#include "net/ng_ipv6/addr.h"

View File

@ -15,6 +15,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include "net/ng_ipv6/addr.h"
#include "net/ng_ipv6/netif.h"

View File

@ -29,6 +29,7 @@
#endif
#include <stdio.h>
#include <inttypes.h>
#include "mpu9150.h"
#include "vtimer.h"

View File

@ -22,6 +22,7 @@
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
#ifdef MODULE_NATIVENET
#include "nativenet.h"

View File

@ -19,6 +19,7 @@
*/
#include <stdio.h>
#include <inttypes.h>
#include "pthread.h"
#include "random.h"

View File

@ -21,6 +21,7 @@
#include <stdio.h>
#include <time.h>
#include <inttypes.h>
#include "vtimer.h"
#include "thread.h"

View File

@ -1,10 +1,6 @@
APPLICATION = vtimer_msg_diff
include ../Makefile.tests_common
BOARD_BLACKLIST := arduino-mega2560
# arduino-mega2560: missing define for PRId64, avr-libc's printf function
# possibly not compatible at all
BOARD_INSUFFICIENT_RAM := mbed_lpc1768 stm32f0discovery pca10000 pca10005
USEMODULE += vtimer

View File

@ -23,6 +23,7 @@
#include <stdio.h>
#include <time.h>
#include <inttypes.h>
#include "vtimer.h"
#include "thread.h"