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 ae4659b cmd/img_mgmt: Fix cut-paste error in img_mgmt_ver_str() (#66)
ae4659b is described below
commit ae4659b445b707409fb17d626c806de3ed284720
Author: Ben McCrea <[email protected]>
AuthorDate: Mon Feb 24 14:27:16 2020 -0800
cmd/img_mgmt: Fix cut-paste error in img_mgmt_ver_str() (#66)
---
cmd/img_mgmt/src/img_mgmt_util.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmd/img_mgmt/src/img_mgmt_util.c b/cmd/img_mgmt/src/img_mgmt_util.c
index a51ed88..b45f7c9 100644
--- a/cmd/img_mgmt/src/img_mgmt_util.c
+++ b/cmd/img_mgmt/src/img_mgmt_util.c
@@ -6,7 +6,7 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
@@ -40,10 +40,10 @@ img_mgmt_ver_str(const struct image_version *ver, char *dst)
dst[off++] = '.';
off += ull_to_s(ver->iv_revision, INT_MAX, dst + off);
-
+
if (ver->iv_build_num != 0) {
dst[off++] = '.';
- off += ull_to_s(ver->iv_revision, INT_MAX, dst + off);
+ off += ull_to_s(ver->iv_build_num, INT_MAX, dst + off);
}
return 0;