From: Pawel Kowalski
Date: Thu, 4 Jul 2019 14:17:02 +0000 (+0200)
Subject: Fix build break for the x86_64 architecture
X-Git-Tag: submit/tizen/20190704.143713^0
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_5.5_unified;p=platform%2Fcore%2Fsecurity%2Fdevice-certificate-manager.git
Fix build break for the x86_64 architecture
In printf function, types of printed variables were adjusted.
Change-Id: I3fda0b37dc6d29338eced9415cd983c58756499c
---
diff --git a/tests/example_capi.c b/tests/example_capi.c
index 97ddc03..852dfc3 100644
--- a/tests/example_capi.c
+++ b/tests/example_capi.c
@@ -49,7 +49,7 @@ int main()
printf("Can't get cert chain\n");
goto exit;
}
- printf("Cert is %d bytes\n", cert_chain_len);
+ printf("Cert is %zu bytes\n", cert_chain_len);
printf("Received cert %s\n", cert_chain);
result = dcm_get_key_bit_length(key_ctx, &key_len);
@@ -57,7 +57,7 @@ int main()
printf("Can't get key length\n");
goto exit;
}
- printf("Private key is %d bits\n", key_len);
+ printf("Private key is %zu bits\n", key_len);
printf("Private key is %s\n", key_type);
result = dcm_create_signature(key_ctx, DCM_DIGEST_SHA256, "12345678901234567890123456789012", 32, &signature, &signature_len);