]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unit test dname log printout typecast.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 27 Mar 2025 09:47:20 +0000 (10:47 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 27 Mar 2025 09:47:20 +0000 (10:47 +0100)
doc/Changelog
testcode/unitdname.c

index f417fc328706aeadd22228af481a7aca89161b57..28adb62f8001f73fb95289835a74f7cc3eba962a 100644 (file)
@@ -1,3 +1,6 @@
+27 March 2025: Wouter
+       - Fix unit test dname log printout typecast.
+
 26 March 2025: Yorgos
        - Fix #1255: Multiple pinnings to vulnerable copies of libexpat.
        - For #1255, for ios use an older expat version that does not require
index a3fa0c50880d3813665c28d94db7ad18f58f618a..08a2dbad774d4acfa4fda4075aa11b2374ede266 100644 (file)
@@ -998,7 +998,7 @@ dname_test_str(sldns_buffer* buff)
                unit_assert( pkt_dname_len(buff) == 3);
                dname_str(sldns_buffer_begin(buff), result);
                if(strcmp( "?.", result) != 0 ) {
-                       log_err("ASCII value '0x%lX' allowed in string output", i);
+                       log_err("ASCII value '0x%lX' allowed in string output", (unsigned long)i);
                        unit_assert(0);
                }
        }