]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- add debug for lp#317130
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Jan 2009 15:35:14 +0000 (15:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-317130.patch -> 1.1

poldek-317130.patch [new file with mode: 0644]

diff --git a/poldek-317130.patch b/poldek-317130.patch
new file mode 100644 (file)
index 0000000..d77a87f
--- /dev/null
@@ -0,0 +1,20 @@
+--- poldek-0.30-cvs20080820.23/pkg.c~  2009-01-14 17:33:56.297011561 +0200
++++ poldek-0.30-cvs20080820.23/pkg.c   2009-01-14 17:33:59.170397703 +0200
+@@ -1451,15 +1451,13 @@
+ struct pkg *pkg_link(struct pkg *pkg)
+ {
+-#if ENABLE_TRACE    
+-    if (strcmp(pkg->name, "XX") == 0) {
+-        DBGF("%p %s (pdir %s, na->refcnt=%d), refcnt=%d (%p)\n",
++    if (pkg->_refcnt >= INT16_MAX - 1) {
++              trace(1, "%p %s (pdir %s, na->refcnt=%d), refcnt=%d (%p)\n",
+              pkg, pkg_snprintf_s(pkg),
+              pkg->pkgdir ? pkgdir_idstr(pkg->pkgdir) : "<none>",
+              pkg->na ? pkg->na->_refcnt : -1,
+              pkg->_refcnt, &pkg->_refcnt);
+     }
+-#endif
+     n_assert(pkg->_refcnt < INT16_MAX - 1);
+     pkg->_refcnt++;
+     return pkg;
This page took 0.029763 seconds and 4 git commands to generate.