Contiki-NG
Functions
log.c File Reference

    Header file for the logging system
More...

#include "sys/log.h"
#include "net/ipv6/ip64-addr.h"
#include "net/ipv6/uiplib.h"
#include "deployment/deployment.h"

Go to the source code of this file.

Functions

void log_6addr (const uip_ipaddr_t *ipaddr)
 Logs an IPv6 address. More...
 
int log_6addr_compact_snprint (char *buf, size_t size, const uip_ipaddr_t *ipaddr)
 Write at most size - 1 characters of the IP address to the output string, in a compact representation. More...
 
void log_6addr_compact (const uip_ipaddr_t *ipaddr)
 Logs an IPv6 address with a compact format. More...
 
void log_lladdr (const linkaddr_t *lladdr)
 Logs a link-layer address. More...
 
void log_lladdr_compact (const linkaddr_t *lladdr)
 Logs a link-layer address with a compact format. More...
 
void log_bytes (const void *data, size_t length)
 Logs a byte array as hex characters. More...
 
void log_set_level (const char *module, int level)
 Sets a log level at run-time. More...
 
int log_get_level (const char *module)
 Returns the current log level. More...
 
const char * log_level_to_str (int level)
 Returns a textual description of a log level. More...
 

Detailed Description

    Header file for the logging system
Author
Simon Duquennoy simon.nosp@m..duq.nosp@m.uenno.nosp@m.y@ri.nosp@m..se

Definition in file log.c.