Loading src/lib/bus/bus_types.h +3 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,9 @@ struct boxed_msg; /* Default number of seconds before a message response times out. */ #define BUS_DEFAULT_TIMEOUT_SEC 10 /* Special sequence ID value indicating none was available. */ #define BUS_NO_SEQ_ID (-1) #define BUS_LOG(B, LEVEL, EVENT_KEY, MSG, UDATA) \ do { \ struct bus *_b = (B); \ Loading src/lib/bus/listener.c +1 −1 Original line number Diff line number Diff line Loading @@ -673,7 +673,7 @@ static void process_unpacked_message(listener *l, } } else { /* We received a response that we weren't expecting. */ if (seq_id != 0) { if (seq_id != BUS_NO_SEQ_ID) { BUS_LOG_SNPRINTF(b, 2 - 2, LOG_LISTENER, b->udata, 128, "Couldn't find info for fd:%d, seq_id:%lld, msg %p", ci->fd, (long long)seq_id, opaque_msg); Loading src/lib/kinetic_pdu.c +1 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ STATIC bus_unpack_cb_res_t unpack_cb(void *msg, void *socket_udata) { memcpy(response->value, &si->buf[si->header.protobufLength], si->header.valueLength); } int64_t seq_id = 0; int64_t seq_id = BUS_NO_SEQ_ID; if (response->command != NULL && response->command->header != NULL) { Loading Loading
src/lib/bus/bus_types.h +3 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,9 @@ struct boxed_msg; /* Default number of seconds before a message response times out. */ #define BUS_DEFAULT_TIMEOUT_SEC 10 /* Special sequence ID value indicating none was available. */ #define BUS_NO_SEQ_ID (-1) #define BUS_LOG(B, LEVEL, EVENT_KEY, MSG, UDATA) \ do { \ struct bus *_b = (B); \ Loading
src/lib/bus/listener.c +1 −1 Original line number Diff line number Diff line Loading @@ -673,7 +673,7 @@ static void process_unpacked_message(listener *l, } } else { /* We received a response that we weren't expecting. */ if (seq_id != 0) { if (seq_id != BUS_NO_SEQ_ID) { BUS_LOG_SNPRINTF(b, 2 - 2, LOG_LISTENER, b->udata, 128, "Couldn't find info for fd:%d, seq_id:%lld, msg %p", ci->fd, (long long)seq_id, opaque_msg); Loading
src/lib/kinetic_pdu.c +1 −1 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ STATIC bus_unpack_cb_res_t unpack_cb(void *msg, void *socket_udata) { memcpy(response->value, &si->buf[si->header.protobufLength], si->header.valueLength); } int64_t seq_id = 0; int64_t seq_id = BUS_NO_SEQ_ID; if (response->command != NULL && response->command->header != NULL) { Loading