Logging module naming: LOG_MODULE_STR becomes LOG_MODULE
This commit is contained in:
parent
07765f8e70
commit
9231d9f82d
@ -53,7 +53,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TCP/IP"
|
||||
#define LOG_MODULE "TCP/IP"
|
||||
#define LOG_LEVEL TCPIP_LOG_LEVEL
|
||||
|
||||
#define UIP_ICMP_BUF ((struct uip_icmp_hdr *)&uip_buf[UIP_LLIPH_LEN + uip_ext_len])
|
||||
|
@ -73,7 +73,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "6LoWPAN"
|
||||
#define LOG_MODULE "6LoWPAN"
|
||||
#define LOG_LEVEL SICSLOWPAN_LOG_LEVEL
|
||||
|
||||
#ifndef SICSLOWPAN_COMPRESSION
|
||||
|
@ -54,7 +54,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 Neighbor"
|
||||
#define LOG_MODULE "IPv6 Neighbor"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
#ifdef UIP_CONF_DS6_NEIGHBOR_STATE_CHANGED
|
||||
|
@ -47,7 +47,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 Route"
|
||||
#define LOG_MODULE "IPv6 Route"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
/* A configurable function called after adding a new neighbor as next hop */
|
||||
|
@ -53,7 +53,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 Data Structures"
|
||||
#define LOG_MODULE "IPv6 Data Structures"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
struct etimer uip_ds6_timer_periodic; /**< Timer for maintenance of data structures */
|
||||
|
@ -49,7 +49,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 ICMPv6"
|
||||
#define LOG_MODULE "IPv6 ICMPv6"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
#define UIP_IP_BUF ((struct uip_ip_hdr *)&uip_buf[UIP_LLH_LEN])
|
||||
|
@ -77,7 +77,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 NDP"
|
||||
#define LOG_MODULE "IPv6 NDP"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
/*------------------------------------------------------------------*/
|
||||
|
@ -91,7 +91,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6"
|
||||
#define LOG_MODULE "IPv6"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 Websocket"
|
||||
#define LOG_MODULE "IPv6 Websocket"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
enum {
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "IPv6 Websocket"
|
||||
#define LOG_MODULE "IPv6 Websocket"
|
||||
#define LOG_LEVEL IPV6_LOG_LEVEL
|
||||
|
||||
PROCESS(websocket_process, "Websockets process");
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "
|
||||
#define LOG_MODULE "
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/* Constants of the IEEE 802.15.4 standard */
|
||||
|
@ -46,7 +46,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "CSMA"
|
||||
#define LOG_MODULE "CSMA"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "Frame 802.15.4e"
|
||||
#define LOG_MODULE "Frame 802.15.4e"
|
||||
#define LOG_LEVEL FRAMER_LOG_LEVEL
|
||||
|
||||
/* c.f. IEEE 802.15.4e Table 4b */
|
||||
|
@ -45,7 +45,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "Frame 802.15.4e"
|
||||
#define LOG_MODULE "Frame 802.15.4e"
|
||||
#define LOG_LEVEL FRAMER_LOG_LEVEL
|
||||
|
||||
/** \brief The sequence number (0x00 - 0xff) added to the transmitted
|
||||
|
@ -34,7 +34,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "MAC"
|
||||
#define LOG_MODULE "MAC"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -53,7 +53,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TSCH Packet"
|
||||
#define LOG_MODULE "TSCH Packet"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TSCH Queue"
|
||||
#define LOG_MODULE "TSCH Queue"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/* Check if TSCH_QUEUE_NUM_PER_NEIGHBOR is power of two */
|
||||
|
@ -48,7 +48,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TSCH RPL"
|
||||
#define LOG_MODULE "TSCH RPL"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TSCH Schedule"
|
||||
#define LOG_MODULE "TSCH Schedule"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/* Pre-allocated space for links */
|
||||
|
@ -63,7 +63,7 @@
|
||||
|
||||
/* Log configuration */
|
||||
#include "sys/log.h"
|
||||
#define LOG_MODULE_STR "TSCH"
|
||||
#define LOG_MODULE "TSCH"
|
||||
#define LOG_LEVEL MAC_LOG_LEVEL
|
||||
|
||||
/* Use to collect link statistics even on Keep-Alive, even though they were
|
||||
|
@ -95,7 +95,7 @@ void uip_debug_ipaddr_print(const uip_ipaddr_t *addr);
|
||||
if (LOG_WITH_LOC) { \
|
||||
LOG_OUTPUT("%s:%d: ", __FILE__, __LINE__); \
|
||||
} \
|
||||
LOG_OUTPUT("%s: ", LOG_MODULE_STR); \
|
||||
LOG_OUTPUT("%s: ", LOG_MODULE); \
|
||||
LOG_OUTPUT(__VA_ARGS__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user