ereader gtk library - Macros for debug printing. More...
#include <stdio.h>
#include <errno.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | LOG_PREFIX "ERGTK" |
#define | LOG_OPEN(X) do {} while (0) |
#define | LOG_CLOSE() do {} while (0) |
#define | LOGPRINTF(format, args...) do {} while (0) |
#define | WARNPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args) |
#define | ERRORPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
#define | ERRNOPRINTF(format, args...) fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
ereader gtk library - Macros for debug printing.
Definition in file ergtk_log.h.
#define ERRNOPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format ", errno [%d] [%s]\n", __LINE__, __func__ , ##args, errno, strerror(errno)) |
Definition at line 89 of file ergtk_log.h.
#define ERRORPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_E)" __FILE__ ":%d,%s() --- " format "\n", __LINE__, __func__ , ##args) |
Definition at line 88 of file ergtk_log.h.
#define LOG_CLOSE | ( | ) | do {} while (0) |
Definition at line 58 of file ergtk_log.h.
#define LOG_OPEN | ( | X | ) | do {} while (0) |
Definition at line 57 of file ergtk_log.h.
#define LOG_PREFIX "ERGTK" |
Copyright (C) 2008 iRex Technologies B.V. All rights reserved.
Definition at line 33 of file ergtk_log.h.
#define LOGPRINTF | ( | format, | |||
args... | ) | do {} while (0) |
Definition at line 68 of file ergtk_log.h.
#define WARNPRINTF | ( | format, | |||
args... | ) | fprintf(stderr, "(" LOG_PREFIX "_W)" __FILE__ ":%d,%s() " format "\n", __LINE__, __func__ , ##args) |
Definition at line 75 of file ergtk_log.h.