Contiki-NG
Loading...
Searching...
No Matches
log.h File Reference

Header file for the logging system. More...

#include <stdio.h>
#include "net/linkaddr.h"
#include "sys/log-conf.h"
#include "net/ipv6/uip.h"

Go to the source code of this file.

Functions

void log_6addr (const uip_ipaddr_t *ipaddr)
 Logs an IPv6 address.
 
void log_6addr_compact (const uip_ipaddr_t *ipaddr)
 Logs an IPv6 address with a compact format.
 
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.
 
void log_lladdr (const linkaddr_t *lladdr)
 Logs a link-layer address.
 
void log_lladdr_compact (const linkaddr_t *lladdr)
 Logs a link-layer address with a compact format.
 
void log_bytes (const void *data, size_t length)
 Logs a byte array as hex characters.
 
void log_set_level (const char *module, int level)
 Sets a log level at run-time.
 
int log_get_level (const char *module)
 Returns the current log level.
 
const char * log_level_to_str (int level)
 Returns a textual description of a log level.
 

Detailed Description

Header file for the logging system.

Author
Simon Duquennoy simon.nosp@m..duq.nosp@m.uenno.nosp@m.y@in.nosp@m.ria.f.nosp@m.r

Definition in file log.h.