From: Michael Tremer Date: Tue, 25 May 2021 13:12:27 +0000 (+0000) Subject: libpakfire: Drop allocated/release log lines X-Git-Tag: 0.9.28~1285^2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81ddbf2fc7e62fadff7b5487fb2ee07b0a12ef5b;p=pakfire.git libpakfire: Drop allocated/release log lines These are very verbose and make the log very long Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/archive.c b/src/libpakfire/archive.c index e2827710f..c85d0e71b 100644 --- a/src/libpakfire/archive.c +++ b/src/libpakfire/archive.c @@ -338,16 +338,12 @@ static PakfireArchiveSignature pakfire_archive_signature_create(PakfireArchive a signature->pakfire = pakfire_ref(archive->pakfire); signature->nrefs = 1; signature->sigdata = strdup(sigdata); - - DEBUG(signature->pakfire, "Allocated archive signature at %p\n%s\n", - signature, signature->sigdata); } return signature; } static void pakfire_archive_signature_free(PakfireArchiveSignature signature) { - DEBUG(signature->pakfire, "Releasing archive signature at %p\n", signature); pakfire_unref(signature->pakfire); if (signature->key) @@ -397,8 +393,6 @@ static void pakfire_archive_free_chksums(PakfireArchive archive) { } static void pakfire_archive_free(PakfireArchive archive) { - DEBUG(archive->pakfire, "Releasing archive at %p\n", archive); - // Close the file if (archive->f) fclose(archive->f); @@ -437,8 +431,6 @@ static int pakfire_archive_create(PakfireArchive* archive, Pakfire pakfire) { if (!a) return ENOMEM; - DEBUG(pakfire, "Allocated new archive at %p\n", archive); - a->pakfire = pakfire_ref(pakfire); a->nrefs = 1; diff --git a/src/libpakfire/db.c b/src/libpakfire/db.c index 724130118..abe649699 100644 --- a/src/libpakfire/db.c +++ b/src/libpakfire/db.c @@ -98,8 +98,6 @@ static void pakfire_db_optimize(struct pakfire_db* db) { } static void pakfire_db_free(struct pakfire_db* db) { - DEBUG(db->pakfire, "Releasing database at %p\n", db); - if (db->handle) { // Optimize the database before it is being closed pakfire_db_optimize(db); @@ -455,8 +453,6 @@ PAKFIRE_EXPORT int pakfire_db_open(struct pakfire_db** db, Pakfire pakfire, int if (!o) return -ENOMEM; - DEBUG(pakfire, "Allocated database at %p\n", o); - o->pakfire = pakfire_ref(pakfire); o->nrefs = 1; diff --git a/src/libpakfire/package.c b/src/libpakfire/package.c index a6edf71f1..a4c08d575 100644 --- a/src/libpakfire/package.c +++ b/src/libpakfire/package.c @@ -68,8 +68,6 @@ PakfirePackage pakfire_package_create_from_solvable(Pakfire pakfire, Id id) { if (!pkg) return NULL; - DEBUG(pakfire, "Allocated Package at %p\n", pkg); - pkg->pakfire = pakfire_ref(pakfire); pkg->id = id; @@ -102,8 +100,6 @@ PAKFIRE_EXPORT PakfirePackage pakfire_package_create(Pakfire pakfire, PakfireRep } static void pakfire_package_free(PakfirePackage pkg) { - DEBUG(pkg->pakfire, "Releasing Package at %p\n", pkg); - if (pkg->repo) pakfire_repo_unref(pkg->repo); diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index c59c7bceb..6b382e951 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -477,8 +477,6 @@ static int pakfire_mount_interpreter(Pakfire pakfire) { } static void pakfire_free(Pakfire pakfire) { - DEBUG(pakfire, "Releasing Pakfire at %p\n", pakfire); - // umount everything pakfire_umount(pakfire); diff --git a/src/libpakfire/parser.c b/src/libpakfire/parser.c index 320db7f84..8699fc8e8 100644 --- a/src/libpakfire/parser.c +++ b/src/libpakfire/parser.c @@ -120,9 +120,6 @@ PAKFIRE_EXPORT PakfireParser pakfire_parser_create(Pakfire pakfire, // Make namespace pakfire_parser_set_namespace(parser, namespace); - - DEBUG(pakfire, "Allocated new parser at %p (%s, %p)\n", - parser, parser->namespace, parser->parent); } return parser; @@ -159,8 +156,6 @@ static void pakfire_parser_free_declarations(PakfireParser parser) { } static void pakfire_parser_free(PakfireParser parser) { - DEBUG(parser->pakfire, "Releasing parser at %p\n", parser); - // Release regular expressions if (parser->regex_variable) pcre2_code_free(parser->regex_variable); diff --git a/src/libpakfire/problem.c b/src/libpakfire/problem.c index ec58e33a8..31f0c9e4c 100644 --- a/src/libpakfire/problem.c +++ b/src/libpakfire/problem.c @@ -209,7 +209,6 @@ PAKFIRE_EXPORT PakfireProblem pakfire_problem_create(struct pakfire_request* req PakfireProblem problem = calloc(1, sizeof(*problem)); if (problem) { - DEBUG(pakfire, "Allocated Problem at %p\n", problem); problem->pakfire = pakfire_ref(pakfire); problem->nrefs = 1; @@ -232,8 +231,6 @@ PAKFIRE_EXPORT PakfireProblem pakfire_problem_ref(PakfireProblem problem) { } static void pakfire_problem_free(PakfireProblem problem) { - DEBUG(problem->pakfire, "Releasing Problem at %p\n", problem); - pakfire_problem_unref(problem->next); pakfire_request_unref(problem->request); diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index 11ad2664b..cd99337ab 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -346,8 +346,6 @@ static void free_repo_appdata(struct pakfire_repo_appdata* appdata) { } static void pakfire_repo_free(PakfireRepo repo, const int free_repo) { - DEBUG(repo->pakfire, "Releasing Repo at %p\n", repo); - if (free_repo) { free_repo_appdata(repo->repo->appdata); repo_free(repo->repo, 0); @@ -387,8 +385,6 @@ PAKFIRE_EXPORT PakfireRepo pakfire_repo_create(Pakfire pakfire, const char* name if (!repo) return NULL; - DEBUG(pakfire, "Allocated Repo at %p\n", repo); - repo->pakfire = pakfire_ref(pakfire); repo->nrefs = 1; diff --git a/src/libpakfire/scriptlet.c b/src/libpakfire/scriptlet.c index d475bc960..5e1c3c427 100644 --- a/src/libpakfire/scriptlet.c +++ b/src/libpakfire/scriptlet.c @@ -61,8 +61,6 @@ struct pakfire_scriptlet* pakfire_scriptlet_create(Pakfire pakfire, const char* if (!scriptlet) return NULL; - DEBUG(pakfire, "Allocated scriptlet at %p\n", scriptlet); - if (data && size) { int r = pakfire_scriptlet_set(scriptlet, data, size); if (r) {