HTTP Server upon new mbed Ethernet Interface. Based on original code by Henry Leinen.

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of HTTP_server by pablo gindel

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers debug.h Source File

debug.h

00001 #ifndef __DEBUG_H__
00002 #define __DEBUG_H__
00003 
00004 
00005 #if (DEBUG == 3)
00006 
00007 #define INFO(x, ...) std::printf("[INFO: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00008 #define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00009 #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00010 
00011 #elif (DEBUG == 2)
00012 
00013 #define INFO(x, ...)
00014 #define WARN(x, ...) std::printf("[WARN: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00015 #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00016 
00017 #elif (DEBUG == 1)
00018 
00019 #define INFO(x, ...)
00020 #define WARN(x, ...)
00021 #define ERR(x, ...) std::printf("[ERR: %s:%d]" x "\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
00022 
00023 #else
00024 
00025 #define INFO(x, ...)
00026 #define WARN(x, ...)
00027 #define ERR(x, ...)
00028 
00029 #endif
00030 
00031 
00032 #endif //   __DEBUG_H__#ifndef __DEBUG_H__