From: Alan T. DeKok Date: Fri, 8 Apr 2022 14:00:00 +0000 (-0400) Subject: add a few things, pretty-print the strings, sort alphabetically X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cabfb46a5731a2e9d07dcda45fc366d95d2c35cf;p=thirdparty%2Ffreeradius-server.git add a few things, pretty-print the strings, sort alphabetically --- diff --git a/src/bin/radsizes.c b/src/bin/radsizes.c index 10d27a09bb..8e3693c582 100644 --- a/src/bin/radsizes.c +++ b/src/bin/radsizes.c @@ -3,19 +3,24 @@ #include #include #include +#include int main(UNUSED int argc, UNUSED char **argv) { -#define SIZEOF(_struct) printf("%s %zu bytes\n", STRINGIFY(_struct), sizeof(_struct)) +#define SIZEOF(_struct) printf("%-24s\t%zu bytes\n", STRINGIFY(_struct), sizeof(_struct)) + + SIZEOF(fr_pair_t); + SIZEOF(fr_pair_list_t); + SIZEOF(fr_rb_node_t); + SIZEOF(fr_value_box_t); - SIZEOF(xlat_exp_t); - SIZEOF(xlat_call_t); SIZEOF(tmpl_t); - SIZEOF(tmpl_rules_t); SIZEOF(tmpl_attr_rules_t); + SIZEOF(tmpl_rules_t); SIZEOF(tmpl_xlat_rules_t); - SIZEOF(fr_value_box_t); - SIZEOF(fr_pair_t); + + SIZEOF(xlat_call_t); + SIZEOF(xlat_exp_t); return 0; }