]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: wrap code for debugging with #ifdef DEBUG/#endif
authorMasatake YAMATO <yamato@redhat.com>
Fri, 1 Oct 2021 17:24:31 +0000 (02:24 +0900)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-filter.c

index 56ade48679aae5717207627489eee51fd30f65d6..318f6886f110665df09b454c1696a72519ace72a 100644 (file)
@@ -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)
 {