]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix warning message format specifiers
authorCatalina Pineros <catalina.pineros@inkbridge.io>
Wed, 11 Mar 2026 17:41:46 +0000 (13:41 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 11 Mar 2026 22:28:37 +0000 (18:28 -0400)
%d is for signed ints. index is uint_32 so it should use %u, which is for unsigned ints.

src/lib/unlang/map_builtin.c

index c6fe6366036dd3b7d454b500f76b42fa116b756c..13d3575948102d6afb7dff54029c00e58c42ddf5 100644 (file)
@@ -93,11 +93,11 @@ static unlang_action_t mod_list_map_proc(unlang_result_t *p_result, UNUSED map_c
                        goto finish;
                }
                if (index > value_count) {
-                       RWARN("Asked for index %d when max is %d.", index, value_count);
+                       RWARN("Asked for index %u when max is %u.", index, value_count);
                        continue;
                }
                if (values[index]->type == FR_TYPE_NULL) {
-                       RDEBUG2("Skipping null value for index %d.", index);
+                       RDEBUG2("Skipping null value for index %u.", index);
                        continue;
                }