frontlib/logging.h
changeset 7158 a0573014ff4f
parent 7155 273ad375d64e
equal deleted inserted replaced
7155:273ad375d64e 7158:a0573014ff4f
     1 /*
     1 /*
     2  * frontlib_internals.h
       
     3  *
     2  *
     4  *  Created on: 30.05.2012
       
     5  *      Author: simmax
       
     6  */
     3  */
     7 
     4 
     8 #ifndef LOGGING_H_
     5 #ifndef LOGGING_H_
     9 #define LOGGING_H_
     6 #define LOGGING_H_
    10 
     7 
    11 #include<stdio.h>
       
    12 #include<stdint.h>
     8 #include<stdint.h>
    13 
     9 
    14 char* flib_format_ip(uint32_t numip);
    10 char* flib_format_ip(uint32_t numip);
    15 
    11 
    16 #define flib_log_e(...) fprintf (stderr, __VA_ARGS__)
    12 void flib_log_e(const char *fmt, ...);
    17 #define flib_log_w(...) printf(__VA_ARGS__)
    13 void flib_log_w(const char *fmt, ...);
    18 #define flib_log_i(...) printf(__VA_ARGS__)
    14 void flib_log_i(const char *fmt, ...);
    19 
    15 
    20 #endif /* LOGGING_H_ */
    16 #endif /* LOGGING_H_ */