You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2019/10/11 20:44:08 UTC
[mynewt-mcumgr] branch master updated: log_mgmt: fix sprintf for
size_t print
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
The following commit(s) were added to refs/heads/master by this push:
new b537a72 log_mgmt: fix sprintf for size_t print
new 17a64fb Merge pull request #35 from vrahane/fix_sprintf_bug
b537a72 is described below
commit b537a723793da0b3d5a67b9d144519dd9d16ca7b
Author: Vipul Rahane <vr...@gmail.com>
AuthorDate: Fri Oct 11 13:41:03 2019 -0700
log_mgmt: fix sprintf for size_t print
---
cmd/log_mgmt/src/log_mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/log_mgmt/src/log_mgmt.c b/cmd/log_mgmt/src/log_mgmt.c
index 4d3f88f..bea2c2e 100644
--- a/cmd/log_mgmt/src/log_mgmt.c
+++ b/cmd/log_mgmt/src/log_mgmt.c
@@ -233,7 +233,7 @@ log_mgmt_cb_encode(struct log_mgmt_entry *entry, void *arg)
entry->type = LOG_ETYPE_STRING;
#endif
snprintf((char *)entry->data, LOG_MGMT_MAX_RSP_LEN,
- "error: entry too large (%d bytes)", entry_len);
+ "error: entry too large (%zu bytes)", entry_len);
}
return MGMT_ERR_EMSGSIZE;