]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use %u instead of %d
authorMark Andrews <marka@isc.org>
Thu, 15 Feb 2018 01:11:17 +0000 (12:11 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 07:17:59 +0000 (18:17 +1100)
bin/tests/dst/dst_test.c

index d2bdcb4f2a5dceb298905b5fb96bc84bd5b84581..500cb956d648c1bad89224e241b4f836ad0f3a4c 100644 (file)
@@ -67,13 +67,13 @@ use(dst_key_t *key, isc_mem_t *mctx) {
        }
        ret = dst_context_adddata(ctx, &datareg);
        if (ret != ISC_R_SUCCESS) {
-               printf("adddata(%d) returned: %s\n", dst_key_alg(key),
+               printf("adddata(%u) returned: %s\n", dst_key_alg(key),
                       isc_result_totext(ret));
                dst_context_destroy(&ctx);
                return;
        }
        ret = dst_context_sign(ctx, &sigbuf);
-       printf("sign(%d) returned: %s\n", dst_key_alg(key),
+       printf("sign(%u) returned: %s\n", dst_key_alg(key),
               isc_result_totext(ret));
        dst_context_destroy(&ctx);
 
@@ -81,13 +81,13 @@ use(dst_key_t *key, isc_mem_t *mctx) {
        isc_buffer_remainingregion(&sigbuf, &sigreg);
        ret = dst_context_create(key, mctx, &ctx);
        if (ret != ISC_R_SUCCESS) {
-               printf("contextcreate(%d) returned: %s\n", dst_key_alg(key),
+               printf("contextcreate(%u) returned: %s\n", dst_key_alg(key),
                       isc_result_totext(ret));
                return;
        }
        ret = dst_context_adddata(ctx, &datareg);
        if (ret != ISC_R_SUCCESS) {
-               printf("adddata(%d) returned: %s\n", dst_key_alg(key),
+               printf("adddata(%u) returned: %s\n", dst_key_alg(key),
                       isc_result_totext(ret));
                dst_context_destroy(&ctx);
                return;