]> git.ipfire.org Git - pakfire.git/commitdiff
parser: Dump the current status less often
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 17:28:32 +0000 (17:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 22 Feb 2025 17:28:32 +0000 (17:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/parser/grammar.y

index 8f2f847aed9bd43ce8d303c3473bd87f83c75aa4..8f9c0be2b3e787e0724359e1faaca006ed4edc72 100644 (file)
@@ -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)