Fix build break for the x86_64 architecture 04/209304/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.022416 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090238 accepted/tizen/5.5/unified/wearable/hotfix/20201027.112930 accepted/tizen/unified/20190705.041552 submit/tizen/20190704.143713 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Thu, 4 Jul 2019 14:17:02 +0000 (16:17 +0200)
committerPawel Kowalski <p.kowalski2@partner.samsung.com>
Thu, 4 Jul 2019 14:30:55 +0000 (16:30 +0200)
In printf function, types of printed variables were adjusted.

Change-Id: I3fda0b37dc6d29338eced9415cd983c58756499c

tests/example_capi.c

index 97ddc03..852dfc3 100644 (file)
@@ -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);