aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 19:00:26 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 19:00:26 +0000
commitc0d1848acf105888c894d7cc36bea349e327ca9a (patch)
tree7c72f7c36cff7bf248fbb395fd43b9e51378ddcc
parent5aea0b6d8eaa1c58ca935154e9bb8d0147ff6d96 (diff)
downloadrpmtools-c0d1848acf105888c894d7cc36bea349e327ca9a.tar
rpmtools-c0d1848acf105888c894d7cc36bea349e327ca9a.tar.gz
rpmtools-c0d1848acf105888c894d7cc36bea349e327ca9a.tar.bz2
rpmtools-c0d1848acf105888c894d7cc36bea349e327ca9a.tar.xz
rpmtools-c0d1848acf105888c894d7cc36bea349e327ca9a.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);