This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch hotfix/coverity_fix
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/hotfix/coverity_fix by this
push:
new 3b235279 Fix format string waring(#486).
3b235279 is described below
commit 3b235279453cf218408fe689f42506fce395f083
Author: PengZheng <[email protected]>
AuthorDate: Mon Apr 10 19:13:26 2023 +0800
Fix format string waring(#486).
---
.../pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_sender.c | 2 +-
libs/framework/src/framework.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 f3bb5120..e8ab0623 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
@@ -297,7 +297,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 %d of total %lu bytes", bytes_written, bytes_to_write);
+ L_WARN("[PSA_WEBSOCKET_TS] Error sending websocket,
written %d of total %zu 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);
diff --git a/libs/framework/src/framework.c b/libs/framework/src/framework.c
index 8114d7cc..17543f1b 100644
--- a/libs/framework/src/framework.c
+++ b/libs/framework/src/framework.c
@@ -79,7 +79,7 @@ static inline void
fw_bundleEntry_waitTillUseCountIs(celix_framework_bundle_entr
if (entry->useCount != desiredUseCount) {
struct timespec now = celix_gettime(CLOCK_MONOTONIC);
if (celix_difftime(&start, &now) > 5) {
- fw_log(celix_frameworkLogger_globalLogger(),
CELIX_LOG_LEVEL_WARNING, "Bundle '%s' (bnd id = %li) still in use. Use count is
%zu, desired is %li", celix_bundle_getSymbolicName(entry->bnd), entry->bndId,
entry->useCount, desiredUseCount);
+ fw_log(celix_frameworkLogger_globalLogger(),
CELIX_LOG_LEVEL_WARNING, "Bundle '%s' (bnd id = %li) still in use. Use count is
%zu, desired is %zu", celix_bundle_getSymbolicName(entry->bnd), entry->bndId,
entry->useCount, desiredUseCount);
start = celix_gettime(CLOCK_MONOTONIC);
}
}