From: tb Date: Wed, 22 Jun 2022 09:56:45 +0000 (+0000) Subject: Fix format strings for size_t X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6d1cb7237f99cfb420960e6c21ca81ff7a2c7e5c;p=openbsd Fix format strings for size_t --- diff --git a/regress/lib/libcrypto/cms/cmstest.c b/regress/lib/libcrypto/cms/cmstest.c index 185d8831ec9..4ff1e1efb84 100644 --- a/regress/lib/libcrypto/cms/cmstest.c +++ b/regress/lib/libcrypto/cms/cmstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmstest.c,v 1.4 2021/03/22 20:31:34 tb Exp $ */ +/* $OpenBSD: cmstest.c,v 1.5 2022/06/22 09:56:45 tb Exp $ */ /* * Copyright (c) 2019 Joel Sing * @@ -167,8 +167,8 @@ test_cms_encrypt_decrypt(void) } if ((len = BIO_get_mem_data(bio_mem, &p)) != strlen(cms_msg)) { - fprintf(stderr, "FAIL: CMS decrypt returned %li bytes, " - "want %zi bytes\n", len, strlen(cms_msg)); + fprintf(stderr, "FAIL: CMS decrypt returned %zu bytes, " + "want %zu bytes\n", len, strlen(cms_msg)); fprintf(stderr, "Got CMS data:\n"); hexdump(p, len); fprintf(stderr, "Want CMS data:\n"); @@ -268,8 +268,8 @@ test_cms_sign_verify(void) } if ((len = BIO_get_mem_data(bio_mem, &p)) != strlen(cms_msg)) { - fprintf(stderr, "FAIL: CMS verify returned %li bytes, " - "want %zi bytes\n", len, strlen(cms_msg)); + fprintf(stderr, "FAIL: CMS verify returned %zu bytes, " + "want %zu bytes\n", len, strlen(cms_msg)); fprintf(stderr, "Got CMS data:\n"); hexdump(p, len); fprintf(stderr, "Want CMS data:\n");