You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/10 22:39:51 UTC

[44/50] [abbrv] incubator-mynewt-core git commit: Change newtmgr log response length to 400

Change newtmgr log response length to 400


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/e2b60019
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e2b60019
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e2b60019

Branch: refs/heads/master
Commit: e2b60019b4b8a101cf62bd4b44a279d9da83c2e4
Parents: 60598d0
Author: Vipul Rahane <vi...@apache.org>
Authored: Wed Nov 9 18:10:22 2016 -0800
Committer: Vipul Rahane <vi...@apache.org>
Committed: Wed Nov 9 18:12:14 2016 -0800

----------------------------------------------------------------------
 sys/log/src/log_nmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e2b60019/sys/log/src/log_nmgr.c
----------------------------------------------------------------------
diff --git a/sys/log/src/log_nmgr.c b/sys/log/src/log_nmgr.c
index 63f5af6..ee77f91 100644
--- a/sys/log/src/log_nmgr.c
+++ b/sys/log/src/log_nmgr.c
@@ -124,7 +124,7 @@ log_nmgr_encode_entry(struct log *log, void *arg, void *dptr, uint16_t len)
     g_err |= cbor_encoder_close_container(&cnt_encoder, &rsp);
     rsp_len = encode_off->rsp_len;
     rsp_len += cbor_encode_bytes_written(&cnt_encoder);
-    if (rsp_len > MGMT_MAX_MTU) {
+    if (rsp_len > 400) {
         rc = OS_ENOMEM;
         goto err;
     }
@@ -180,7 +180,7 @@ log_encode_entries(struct log *log, CborEncoder *cb,
     g_err |= cbor_encoder_close_container(&cnt_encoder, &entries);
     rsp_len = cbor_encode_bytes_written(cb) +
               cbor_encode_bytes_written(&cnt_encoder);
-    if (rsp_len > MGMT_MAX_MTU) {
+    if (rsp_len > 400) {
         rc = OS_ENOMEM;
         goto err;
     }