]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
jail: Log when jails are created/destroyed
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 08:23:21 +0000 (08:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 08:23:21 +0000 (08:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/jail.c

index 6447a9045da996f766ebf24fe8f664ba5850a110..fdadc50eaee76d15bc41872792ae962b8b7f36af 100644 (file)
@@ -18,6 +18,7 @@
 #                                                                             #
 #############################################################################*/
 
+#include <pakfire/logging.h>
 #include <pakfire/jail.h>
 #include <pakfire/pakfire.h>
 
@@ -37,12 +38,16 @@ int pakfire_jail_create(struct pakfire_jail** jail, struct pakfire* pakfire) {
        // Initialize reference counter
        j->nrefs = 1;
 
+       DEBUG(j->pakfire, "Allocated new jail at %p\n", j);
+
        // Done
        *jail = j;
        return 0;
 }
 
 static void pakfire_jail_free(struct pakfire_jail* jail) {
+       DEBUG(jail->pakfire, "Freeing jail at %p\n", jail);
+
        pakfire_unref(jail->pakfire);
        free(jail);
 }