Logging module naming: LOG_MODULE_STR becomes LOG_MODULE

This commit is contained in:
Simon Duquennoy 2017-06-21 16:16:49 +02:00
parent 07765f8e70
commit 9231d9f82d
21 changed files with 21 additions and 21 deletions

View File

@ -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])

View File

@ -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

View File

@ -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

View File

@ -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 */

View File

@ -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 */

View File

@ -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])

View File

@ -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
/*------------------------------------------------------------------*/

View File

@ -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
/*---------------------------------------------------------------------------*/

View File

@ -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 {

View File

@ -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");

View File

@ -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 */

View File

@ -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
/*---------------------------------------------------------------------------*/

View File

@ -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 */

View File

@ -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

View File

@ -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
/*---------------------------------------------------------------------------*/

View File

@ -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
/*---------------------------------------------------------------------------*/

View File

@ -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 */

View File

@ -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
/*---------------------------------------------------------------------------*/

View File

@ -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 */

View File

@ -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

View File

@ -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)