} while (0)
#define OVS_DEBUG(fmt, ...) \
do { \
- DEBUG("%s:%d:%s(): " fmt, __FILE__, __LINE__, __FUNCTION__, \
- ##__VA_ARGS__); \
+ DEBUG("%s:%d:%s(): " fmt, __FILE__, __LINE__, __func__, ##__VA_ARGS__); \
} while (0)
#define OVS_DB_POLL_TIMEOUT 1 /* poll receive timeout (sec) */
}
OVS_YAJL_CALL(yajl_gen_map_close, jgen);
} else {
- OVS_ERROR("%s() unsupported value type %d (skip)", __FUNCTION__,
+ OVS_ERROR("%s() unsupported value type %d (skip)", __func__,
(int)(jval)->type);
goto yajl_gen_failure;
}
return yajl_gen_status_ok;
yajl_gen_failure:
- OVS_ERROR("%s() error to generate value", __FUNCTION__);
+ OVS_ERROR("%s() error to generate value", __func__);
return yajl_gen_ret;
}
clock_gettime(CLOCK_REALTIME, &ts);
ts.tv_sec += OVS_DB_SEND_REQ_TIMEOUT;
if (sem_timedwait(&new_cb->result.sync, &ts) < 0) {
- OVS_ERROR("%s() no replay received within %d sec", __FUNCTION__,
+ OVS_ERROR("%s() no replay received within %d sec", __func__,
OVS_DB_SEND_REQ_TIMEOUT);
ret = (-1);
}