diff options
author | YoungHun Kim <yh8004.kim@samsung.com> | 2023-08-17 08:10:44 +0900 |
---|---|---|
committer | YoungHun Kim <yh8004.kim@samsung.com> | 2023-08-17 10:35:23 +0900 |
commit | b9f44f1ebfc94e0dc42833a05b43e0eda83e300b (patch) | |
tree | 85e4c640fbc480c297c982045ddee89fb40ac217 | |
parent | 9eb08add26352ae757e81f87acdc13f97d1223e8 (diff) | |
download | murphy-b9f44f1ebfc94e0dc42833a05b43e0eda83e300b.tar.gz murphy-b9f44f1ebfc94e0dc42833a05b43e0eda83e300b.tar.bz2 murphy-b9f44f1ebfc94e0dc42833a05b43e0eda83e300b.zip |
Fix coverity issueaccepted/tizen/7.0/unified/20230818.185424
Change-Id: I6e5e71684888111708b59045fa3cc4cc8deabf21
-rw-r--r-- | packaging/murphy.spec | 2 | ||||
-rw-r--r-- | src/common/msg.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/packaging/murphy.spec b/packaging/murphy.spec index f986224..8ccf501 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -29,7 +29,7 @@ Summary: Resource policy framework Name: murphy Version: 0.0.75 -Release: 25 +Release: 26 License: BSD-3-Clause Group: System/Service URL: http://01.org/murphy/ diff --git a/src/common/msg.c b/src/common/msg.c index 2db8214..50c4b40 100644 --- a/src/common/msg.c +++ b/src/common/msg.c @@ -843,7 +843,7 @@ int mrp_msg_dump(mrp_msg_t *msg, FILE *fp) DUMP(0, "%d", tname, f->s32); break; case MRP_MSG_FIELD_UINT64: - DUMP(0, "%Lu", tname, (long long unsigned)f->u64); + DUMP(0, "%llu", tname, (long long unsigned)f->u64); break; case MRP_MSG_FIELD_SINT64: DUMP(0, "%Ld", tname, (long long signed)f->s64); @@ -900,7 +900,7 @@ int mrp_msg_dump(mrp_msg_t *msg, FILE *fp) DUMP(8, "%d", tname, f->as32[i]); break; case MRP_MSG_FIELD_UINT64: - DUMP(8, "%Lu", tname, + DUMP(8, "%llu", tname, (unsigned long long)f->au64[i]); break; case MRP_MSG_FIELD_SINT64: @@ -1995,7 +1995,7 @@ int mrp_data_dump(void *data, mrp_data_descr_t *descr, FILE *fp) DUMP(0, "%d", tname, v->s32); break; case MRP_MSG_FIELD_UINT64: - DUMP(0, "%Lu", tname, (long long unsigned)v->u64); + DUMP(0, "%llu", tname, (long long unsigned)v->u64); break; case MRP_MSG_FIELD_SINT64: DUMP(0, "%Ld", tname, (long long signed)v->s64); @@ -2043,10 +2043,10 @@ int mrp_data_dump(void *data, mrp_data_descr_t *descr, FILE *fp) DUMP(8, "%d", tname, v->as32[j]); break; case MRP_MSG_FIELD_UINT64: - DUMP(8, "%Lu", tname, (long long unsigned)v->au64[j]); + DUMP(8, "%llu", tname, (long long unsigned)v->au64[j]); break; case MRP_MSG_FIELD_SINT64: - DUMP(8, "%Ld", tname, (long long signed)v->as64[j]); + DUMP(8, "%lld", tname, (long long signed)v->as64[j]); break; case MRP_MSG_FIELD_DOUBLE: DUMP(8, "%f", tname, v->adbl[j]); |