BUILD/MINOR: opentracing: fixed build when using clang
The arguments of the snprintf() function are now consistent with the
format used.
This should fix the github issue #1242.
diff --git a/addons/ot/src/scope.c b/addons/ot/src/scope.c
index 8305f24..8d70a08 100644
--- a/addons/ot/src/scope.c
+++ b/addons/ot/src/scope.c
@@ -116,8 +116,8 @@
(void)snprintf(retptr->uuid.s, sizeof(retptr->uuid.s), "%08x-%04hx-%04hx-%04hx-%012" PRIx64,
retptr->uuid.time_low,
retptr->uuid.time_mid,
- (retptr->uuid.time_hi_and_version & UINT16_C(0xfff)) | UINT16_C(0x4000),
- retptr->uuid.clock_seq | UINT16_C(0x8000),
+ (uint16_t)((retptr->uuid.time_hi_and_version & UINT16_C(0xfff)) | UINT16_C(0x4000)),
+ (uint16_t)(retptr->uuid.clock_seq | UINT16_C(0x8000)),
(uint64_t)retptr->uuid.node);
if (flt_ot_var_register(FTL_OT_VAR_UUID, err) != -1)