This is an automated email from the ASF dual-hosted git repository.
rlenferink pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/develop by this push:
new e7d0b65 Fixed coverity issues
e7d0b65 is described below
commit e7d0b659d91ce5a3c9a57e682e76680fecd27b34
Author: Roy Lenferink <[email protected]>
AuthorDate: Wed Oct 23 19:03:02 2019 +0200
Fixed coverity issues
---
.../pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c | 2 +-
.../pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c
b/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c
index 1c90f3c..babd9ce 100644
---
a/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c
+++
b/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c
@@ -501,7 +501,7 @@ static inline void
processMsg(pubsub_websocket_topic_receiver_t *receiver, const
json_integer_value(jsSeqNr), (jsData ? "TRUE" : "FALSE"));
}
} else {
- L_WARN("[PSA_WEBSOCKET_TR] Failed to load websocket JSON message,
error: %s", error.line, error.text);
+ L_WARN("[PSA_WEBSOCKET_TR] Failed to load websocket JSON message,
error line: %d, error message: %s", error.line, error.text);
return;
}
diff --git
a/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c
b/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c
index d3b484c..b533567 100644
--- a/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c
+++ b/bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c
@@ -331,7 +331,7 @@ static int psa_websocket_topicPublicationSend(void* handle,
unsigned int msgType
free((void *) msg);
json_decref(jsData); //Decrease ref count means freeing the
object
if (bytes_written != (int) bytes_to_write) {
- L_WARN("[PSA_WEBSOCKET_TS] Error sending websocket,
written %lu of total %lu bytes", bytes_written, bytes_to_write);
+ L_WARN("[PSA_WEBSOCKET_TS] Error sending websocket,
written %d of total %lu bytes", bytes_written, bytes_to_write);
}
} else {
L_WARN("[PSA_WEBSOCKET_TS] Error sending websocket, serialized
data corrupt. Error(%d;%d;%d): %s", jsError.column, jsError.line,
jsError.position, jsError.text);