diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-04 11:25:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-04 11:25:46 +0200 |
commit | dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 (patch) | |
tree | b7b0f4014409f8514a1729b48a8776660747d149 /build | |
parent | 422fa0dbeab879d3510c879554c33e359e0ab7ab (diff) | |
download | librpm-tizen-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.gz librpm-tizen-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.bz2 librpm-tizen-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.zip |
Eliminate debug junk from the API
- add some helper macros to accomplish the same, easy to enable / disable
as needed
Diffstat (limited to 'build')
-rw-r--r-- | build/pack.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/build/pack.c b/build/pack.c index cea97b1cc..7299f687a 100644 --- a/build/pack.c +++ b/build/pack.c @@ -684,13 +684,14 @@ int packageBinaries(rpmSpec spec) memset(csa, 0, sizeof(*csa)); csa->cpioArchiveSize = 0; /* LCL: function typedefs */ - csa->cpioFdIn = fdNew("init (packageBinaries)"); - csa->cpioList = rpmfiLink(pkg->cpioList, "packageBinaries"); + csa->cpioFdIn = fdNew(RPMDBG_M("init (packageBinaries)")); + csa->cpioList = rpmfiLink(pkg->cpioList, RPMDBG_M("packageBinaries")); rc = writeRPM(&pkg->header, NULL, fn, csa, spec->passPhrase, NULL); csa->cpioList = rpmfiFree(csa->cpioList); - csa->cpioFdIn = fdFree(csa->cpioFdIn, "init (packageBinaries)"); + csa->cpioFdIn = fdFree(csa->cpioFdIn, + RPMDBG_M("init (packageBinaries)")); fn = _free(fn); if (rc) return rc; @@ -723,15 +724,17 @@ int packageSources(rpmSpec spec) memset(csa, 0, sizeof(*csa)); csa->cpioArchiveSize = 0; /* LCL: function typedefs */ - csa->cpioFdIn = fdNew("init (packageSources)"); - csa->cpioList = rpmfiLink(spec->sourceCpioList, "packageSources"); + csa->cpioFdIn = fdNew(RPMDBG_M("init (packageSources)")); + csa->cpioList = rpmfiLink(spec->sourceCpioList, + RPMDBG_M("packageSources")); spec->sourcePkgId = NULL; rc = writeRPM(&spec->sourceHeader, &spec->sourcePkgId, fn, csa, spec->passPhrase, &(spec->cookie)); csa->cpioList = rpmfiFree(csa->cpioList); - csa->cpioFdIn = fdFree(csa->cpioFdIn, "init (packageSources)"); + csa->cpioFdIn = fdFree(csa->cpioFdIn, + RPMDBG_M("init (packageSources)")); fn = _free(fn); } return rc; |