]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-317130.patch
- added -assertion-failed.patch
[packages/poldek.git] / poldek-317130.patch
1 --- poldek-0.30-cvs20080820.23/pkg.c~   2009-01-14 17:33:56.297011561 +0200
2 +++ poldek-0.30-cvs20080820.23/pkg.c    2009-01-14 17:33:59.170397703 +0200
3 @@ -1451,15 +1451,13 @@
4  
5  struct pkg *pkg_link(struct pkg *pkg)
6  {
7 -#if ENABLE_TRACE    
8 -    if (strcmp(pkg->name, "XX") == 0) {
9 -        DBGF("%p %s (pdir %s, na->refcnt=%d), refcnt=%d (%p)\n",
10 +    if (pkg->_refcnt >= INT16_MAX - 1) {
11 +               trace(1, "%p %s (pdir %s, na->refcnt=%d), refcnt=%d (%p)\n",
12               pkg, pkg_snprintf_s(pkg),
13               pkg->pkgdir ? pkgdir_idstr(pkg->pkgdir) : "<none>",
14               pkg->na ? pkg->na->_refcnt : -1,
15               pkg->_refcnt, &pkg->_refcnt);
16      }
17 -#endif
18      n_assert(pkg->_refcnt < INT16_MAX - 1);
19      pkg->_refcnt++;
20      return pkg;
This page took 0.031243 seconds and 3 git commands to generate.