From: Michael Tremer Date: Sat, 22 Feb 2025 17:28:32 +0000 (+0000) Subject: parser: Dump the current status less often X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05547267854a8886f30b5f617ec71bc635c35e1b;p=pakfire.git parser: Dump the current status less often Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/parser/grammar.y b/src/pakfire/parser/grammar.y index 8f2f847a..8f9c0be2 100644 --- a/src/pakfire/parser/grammar.y +++ b/src/pakfire/parser/grammar.y @@ -412,7 +412,6 @@ else_stmt : T_ELSE T_EOL block int pakfire_parser_parse_data(struct pakfire_parser* parent, const char* data, size_t len, struct pakfire_parser_error** error) { struct pakfire* pakfire = pakfire_parser_get_pakfire(parent); - char* dump = NULL; yyscan_t scanner; int r; @@ -475,19 +474,12 @@ int pakfire_parser_parse_data(struct pakfire_parser* parent, const char* data, s // Save end time clock_t t_end = clock(); - // Log what we have in the parent parser now - dump = pakfire_parser_dump(parent); - if (dump) - DEBUG(ctx, "Status of the parser %p:\n%s\n", parent, dump); - // Log time we needed to parse data DEBUG(ctx, "Parser finished in %.4fms\n", (double)(t_end - t_start) * 1000 / CLOCKS_PER_SEC); #endif ERROR: - if (dump) - free(dump); if (parser) pakfire_parser_unref(parser); if (pakfire)