From: Masatake YAMATO Date: Fri, 1 Oct 2021 17:24:31 +0000 (+0900) Subject: lsfd: wrap code for debugging with #ifdef DEBUG/#endif X-Git-Tag: v2.38-rc1~144^2~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae6ccf51e8f91c15bc567bb4907265a5bbadb3ec;p=thirdparty%2Futil-linux.git lsfd: wrap code for debugging with #ifdef DEBUG/#endif Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-filter.c b/misc-utils/lsfd-filter.c index 56ade48679..318f6886f1 100644 --- a/misc-utils/lsfd-filter.c +++ b/misc-utils/lsfd-filter.c @@ -174,7 +174,9 @@ static void node_dump (struct node *, struct parameter *, int, FILE *); static struct token *token_new (void); static void token_free(struct token *); +#ifdef DEBUG static void token_dump(struct token *, FILE *); +#endif /* DEBUG */ static void token_free_str(struct token *); @@ -858,6 +860,7 @@ static void token_free(struct token *token) free(token); } +#ifdef DEBUG static void token_dump(struct token *token, FILE *stream) { fprintf(stream, "<%s>", TOKEN_CLASS(token)->name); @@ -865,6 +868,7 @@ static void token_dump(struct token *token, FILE *stream) TOKEN_CLASS(token)->dump(token, stream); fputc('\n', stream); } +#endif /* DEBUG */ static void token_free_str(struct token *token) {