#define LOG_W(fmt, args...) DUMMY_FUNCTION()
#else
// add LINE
- #define LOG_I(fmt, args...) LOG_i(fmt";%d", ## args, __LINE__)
- #define LOG_W(fmt, args...) LOG_w(fmt";%d", ## args, __LINE__)
+ #define LOG_I(fmt, args...) LOG_i(fmt ";%d", ## args, __LINE__)
+ #define LOG_W(fmt, args...) LOG_w(fmt ";%d", ## args, __LINE__)
#endif
// LOG_E is always defined
#define _LOG_E(fmt, args...) LOG_e(fmt, ## args)
#define LOG_I(fmt, args...) DUMMY_FUNCTION()
#define LOG_W(fmt, args...) DUMMY_FUNCTION()
#else
- #define LOG_I(...) _LOG_x("I",__VA_ARGS__)
- #define LOG_W(...) _LOG_x("W",__VA_ARGS__)
+ #define LOG_I(...) _LOG_x("I", __VA_ARGS__)
+ #define LOG_W(...) _LOG_x("W", __VA_ARGS__)
#endif
- #define _LOG_E(...) _LOG_x("E",__VA_ARGS__)
+ #define _LOG_E(...) _LOG_x("E", __VA_ARGS__)
#endif //defined(LOG_ANDROID)
do \
{ \
_LOG_E(" *****************************"); \
- _LOG_E(" *** ERROR: "__VA_ARGS__); \
+ _LOG_E(" *** ERROR: " __VA_ARGS__); \
_LOG_E(" *** Detected in %s:%i/%s()", __FILE__, __LINE__, __FUNCTION__); \
_LOG_E(" *****************************"); \
} while(1!=1)
src_addr.nl_family = AF_NETLINK;
src_addr.nl_pid = MC_DAEMON_PID; /* daemon pid */
src_addr.nl_groups = 0; /* not in mcast groups */
- if (bind(serverSock, (struct sockaddr *)&src_addr, sizeof(src_addr)) < 0) {
+ if (::bind(serverSock, (struct sockaddr *)&src_addr, sizeof(src_addr)) < 0) {
LOG_ERRNO("Binding to server socket failed, because bind");
close(serverSock);
break;