aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 19:00:18 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 19:00:18 +0000
commitf553bf689ac0f5f8d18dd7e43c8051b1963eb35e (patch)
tree604f9eb353df80c1c42c3f6bc9786defcef2ae45
parentd6f9d44d9224677ee32050567481644c73b7c17d (diff)
downloadperl-URPM-f553bf689ac0f5f8d18dd7e43c8051b1963eb35e.tar
perl-URPM-f553bf689ac0f5f8d18dd7e43c8051b1963eb35e.tar.gz
perl-URPM-f553bf689ac0f5f8d18dd7e43c8051b1963eb35e.tar.bz2
perl-URPM-f553bf689ac0f5f8d18dd7e43c8051b1963eb35e.tar.xz
perl-URPM-f553bf689ac0f5f8d18dd7e43c8051b1963eb35e.zip
provide function name in logging
-rw-r--r--rpm5compat.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/rpm5compat.h b/rpm5compat.h
index 860cc8d..e3624bd 100644
--- a/rpm5compat.h
+++ b/rpm5compat.h
@@ -127,11 +127,10 @@ void * headerFreeData(const void * data, rpmTagType type) {
static int headerWrite(void * _fd, Header h, enum hMagic magicp) {
const char item[] = "Header";
- const char * fn = NULL;
const char * msg = NULL;
rpmRC rc = rpmpkgWrite(item, _fd, h, &msg);
if (rc != RPMRC_OK) {
- rpmlog(RPMLOG_ERR, "%s: %s: %s\n", fn, item, msg);
+ rpmlog(RPMLOG_ERR, "%s: %s: %s\n", "headerWrite", item, msg);
rc = RPMRC_FAIL;
}
msg = _free(msg);
@@ -141,11 +140,10 @@ static int headerWrite(void * _fd, Header h, enum hMagic magicp) {
static inline Header headerRead(void * _fd, enum hMagic magicp) {
const char item[] = "Header";
Header h = NULL;
- const char * fn = NULL;
const char * msg = NULL;
rpmRC rc = rpmpkgRead(item, _fd, &h, &msg);
if (rc != RPMRC_OK) {
- rpmlog(RPMLOG_ERR, "%s: %s: %s\n", fn, item, msg);
+ rpmlog(RPMLOG_ERR, "%s: %s: %s\n", "headerRead", item, msg);
rc = RPMRC_FAIL;
}
msg = _free(msg);