]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Adopt a standard naming convention and signture for debug functions
authorJames Jones <jejones3141@gmail.com>
Fri, 31 Jan 2025 19:56:05 +0000 (13:56 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 Jul 2025 21:20:27 +0000 (14:20 -0700)
commit44b264feecdb6fd5faffa20854efc96a81b375cf
treea33a219843254e23185fb78ac4872669d84e2461
parent36d1ef2a375fb5b6143aecf036501fa04b13d0ad
Adopt a standard naming convention and signture for debug functions

To get the "dd" debugger command to work without having to create an
wxplicit mapping from type to function either by hand or by runtime
inspection (the latter preventing setting up the command at debugger
startup), the debug functions that dd calls should have a type of
the form

    foo_debug(FILE *fp, foo_t const *)

We add the qualifier becausen
 * some support functions with extra parameters are meant to be
   called by these functions, which pass the additional parameters;
   the functions we do call can pass fp along, or in the case of
   src/lib/util/dict_print.c, add fp to the context
 * fe_dict_attr_t * has three debug functions
 * fr_pair_validate_debug() takes a pointer to an array, and
   thus can't follow the convention
 * virtual_server_{listen, process}_debug() and module_rlm_list_debug()
   have *no* parameters
37 files changed:
debugger/dd.py
src/bin/fuzzer.c
src/bin/unit_test_attribute.c
src/lib/io/atomic_queue.c
src/lib/io/atomic_queue.h
src/lib/io/message.c
src/lib/io/message.h
src/lib/io/queue.c
src/lib/io/queue.h
src/lib/io/ring_buffer.c
src/lib/io/ring_buffer.h
src/lib/server/command.c
src/lib/server/command.h
src/lib/server/tmpl.h
src/lib/server/tmpl_dcursor.c
src/lib/server/tmpl_tokenize.c
src/lib/unlang/edit.c
src/lib/unlang/xlat_builtin.c
src/lib/unlang/xlat_eval.c
src/lib/unlang/xlat_expr.c
src/lib/util/dict.h
src/lib/util/dict_print.c
src/lib/util/dict_util.c
src/lib/util/dl.c
src/lib/util/dl.h
src/lib/util/pair.h
src/lib/util/pair_print.c
src/lib/util/sbuff.c
src/lib/util/sbuff.h
src/lib/util/value.c
src/lib/util/value.h
src/protocols/dns/encode.c
src/tests/util/atomic_queue_test.c
src/tests/util/channel_test.c
src/tests/util/message_set_test.c
src/tests/util/radius1_test.c
src/tests/util/worker_test.c