summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-10-09 14:48:04 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-10-09 14:48:04 +0300
commit9d9aa852ca724e4c7671cec249189f7dfef5ed8e (patch)
tree4b9d2126c2580c47cccfa6d27450ed9049ad4464 /rpmdb
parent4ce9fc1a1725b883190de2c415842a342ed3dbe3 (diff)
downloadrpm-9d9aa852ca724e4c7671cec249189f7dfef5ed8e.tar.gz
rpm-9d9aa852ca724e4c7671cec249189f7dfef5ed8e.tar.bz2
rpm-9d9aa852ca724e4c7671cec249189f7dfef5ed8e.zip
Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/db3.c14
-rw-r--r--rpmdb/rpmdb.c34
-rw-r--r--rpmdb/sqlite.c12
3 files changed, 30 insertions, 30 deletions
diff --git a/rpmdb/db3.c b/rpmdb/db3.c
index af2866747..87fe71ec9 100644
--- a/rpmdb/db3.c
+++ b/rpmdb/db3.c
@@ -171,7 +171,7 @@ static int db_fini(dbiIndex dbi, const char * dbhome,
rc = cvtdberr(dbi, "dbenv->close", rc, _debug);
if (dbfile)
- rpmlog(RPMMESS_DEBUG, _("closed db environment %s/%s\n"),
+ rpmlog(RPMLOG_DEBUG, _("closed db environment %s/%s\n"),
dbhome, dbfile);
if (rpmdb->db_remove_env) {
@@ -183,7 +183,7 @@ static int db_fini(dbiIndex dbi, const char * dbhome,
xx = cvtdberr(dbi, "dbenv->remove", xx, _debug);
if (dbfile)
- rpmlog(RPMMESS_DEBUG, _("removed db environment %s/%s\n"),
+ rpmlog(RPMLOG_DEBUG, _("removed db environment %s/%s\n"),
dbhome, dbfile);
}
@@ -238,7 +238,7 @@ static int db_init(dbiIndex dbi, const char * dbhome,
if (eflags & DB_JOINENV) eflags &= DB_JOINENV;
if (dbfile)
- rpmlog(RPMMESS_DEBUG, _("opening db environment %s/%s %s\n"),
+ rpmlog(RPMLOG_DEBUG, _("opening db environment %s/%s %s\n"),
dbhome, dbfile, prDbiOpenFlags(eflags, 1));
/* XXX Can't do RPC w/o host. */
@@ -677,7 +677,7 @@ static int db3close(dbiIndex dbi, unsigned int flags)
rc = cvtdberr(dbi, "db->close", rc, _printit);
db = dbi->dbi_db = NULL;
- rpmlog(RPMMESS_DEBUG, _("closed db index %s/%s\n"),
+ rpmlog(RPMLOG_DEBUG, _("closed db index %s/%s\n"),
dbhome, (dbfile ? dbfile : rpmTagGetName(dbi->dbi_rpmtag)));
}
@@ -734,7 +734,7 @@ static int db3close(dbiIndex dbi, unsigned int flags)
rc = db->verify(db, dbf, NULL, NULL, flags);
rc = cvtdberr(dbi, "db->verify", rc, _debug);
- rpmlog(RPMMESS_DEBUG, _("verified db index %s/%s\n"),
+ rpmlog(RPMLOG_DEBUG, _("verified db index %s/%s\n"),
(dbhome ? dbhome : ""),
(dbfile ? dbfile : rpmTagGetName(dbi->dbi_rpmtag)));
@@ -945,7 +945,7 @@ static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex * dbip)
}
}
- rpmlog(RPMMESS_DEBUG, _("opening db index %s/%s %s mode=0x%x\n"),
+ rpmlog(RPMLOG_DEBUG, _("opening db index %s/%s %s mode=0x%x\n"),
dbhome, (dbfile ? dbfile : rpmTagGetName(dbi->dbi_rpmtag)),
prDbiOpenFlags(oflags, 0), dbi->dbi_mode);
@@ -1162,7 +1162,7 @@ static int db3open(rpmdb rpmdb, rpmTag rpmtag, dbiIndex * dbip)
? _("exclusive") : _("shared")),
dbhome, (dbfile ? dbfile : ""));
} else if (dbfile) {
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("locked db index %s/%s\n"),
dbhome, dbfile);
}
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index bd6987371..cc82389a5 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -234,7 +234,7 @@ dbiIndex dbiOpen(rpmdb db, rpmTag rpmtag, unsigned int flags)
default:
_dbapi = _dbapi_wanted;
if (_dbapi < 0 || _dbapi >= 5 || mydbvecs[_dbapi] == NULL) {
- rpmlog(RPMMESS_DEBUG, "dbiOpen: _dbiapi failed\n");
+ rpmlog(RPMLOG_DEBUG, "dbiOpen: _dbiapi failed\n");
return NULL;
}
errno = 0;
@@ -653,7 +653,7 @@ int rpmdbCheckSignals(void)
{
if (rpmdbCheckTerminate(0)) {
/* sigset_t is abstract type */
- rpmlog(RPMMESS_DEBUG, "Exiting on signal(0x%lx) ...\n", *((unsigned long *)&rpmsqCaught));
+ rpmlog(RPMLOG_DEBUG, "Exiting on signal(0x%lx) ...\n", *((unsigned long *)&rpmsqCaught));
exit(EXIT_FAILURE);
}
return 0;
@@ -1485,7 +1485,7 @@ static int miFreeHeader(rpmdbMatchIterator mi, dbiIndex dbi)
int lvl;
rpmrc = (*mi->mi_hdrchk) (mi->mi_ts, data->data, data->size, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMMESS_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("miFreeHeader: skipping") : "write"),
mi->mi_prevoffset, (msg ? msg : "\n"));
@@ -2111,7 +2111,7 @@ if (dbiByteSwapped(dbi) == 1)
int lvl;
rpmrc = (*mi->mi_hdrchk) (mi->mi_ts, uh, uhlen, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMMESS_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("rpmdbNextIterator: skipping") : " read"),
mi->mi_offset, (msg ? msg : "\n"));
@@ -2451,7 +2451,7 @@ memset(data, 0, sizeof(*data));
{ const char *n, *v, *r;
(void) headerNVR(h, &n, &v, &r);
- rpmlog(RPMMESS_DEBUG, " --- h#%8u %s-%s-%s\n", hdrNum, n, v, r);
+ rpmlog(RPMLOG_DEBUG, " --- h#%8u %s-%s-%s\n", hdrNum, n, v, r);
}
(void) blockSignals(db, &signalMask);
@@ -2600,11 +2600,11 @@ if (dbiByteSwapped(dbi) == 1)
if (!printed) {
if (rpmcnt == 1 && stringvalued) {
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("removing \"%s\" from %s index.\n"),
(char *)key->data, rpmTagGetName(dbi->dbi_rpmtag));
} else {
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("removing %d entries from %s index.\n"),
rpmcnt, rpmTagGetName(dbi->dbi_rpmtag));
}
@@ -2865,7 +2865,7 @@ data->size = headerSizeof(h, HEADER_MAGIC_NO);
int lvl;
rpmrc = (*hdrchk) (ts, data->data, data->size, &msg);
- lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMMESS_DEBUG);
+ lvl = (rpmrc == RPMRC_FAIL ? RPMMESS_ERROR : RPMLOG_DEBUG);
rpmlog(lvl, "%s h#%8u %s",
(rpmrc == RPMRC_FAIL ? _("rpmdbAdd: skipping") : " +++"),
hdrNum, (msg ? msg : "\n"));
@@ -3022,11 +3022,11 @@ data->size = 0;
if (!printed) {
if (rpmcnt == 1 && stringvalued) {
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("adding \"%s\" to %s index.\n"),
(char *)key->data, rpmTagGetName(dbi->dbi_rpmtag));
} else {
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("adding %d entries to %s index.\n"),
rpmcnt, rpmTagGetName(dbi->dbi_rpmtag));
}
@@ -3418,7 +3418,7 @@ static int rpmdbMoveDatabase(const char * prefix,
const char * mdb1 = "/etc/rpm/macros.db1";
struct stat st;
if (!stat(mdb1, &st) && S_ISREG(st.st_mode) && !unlink(mdb1))
- rpmlog(RPMMESS_DEBUG,
+ rpmlog(RPMLOG_DEBUG,
_("removing %s after successful db3 rebuild.\n"), mdb1);
}
#endif
@@ -3450,7 +3450,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
tfn = rpmGetPath("%{?_dbpath}", NULL);
if (!(tfn && tfn[0] != '\0'))
{
- rpmlog(RPMMESS_DEBUG, _("no dbpath has been set"));
+ rpmlog(RPMLOG_DEBUG, _("no dbpath has been set"));
rc = 1;
goto exit;
}
@@ -3476,7 +3476,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
newdbpath += strlen(prefix) - 1;
tfn = _free(tfn);
- rpmlog(RPMMESS_DEBUG, _("rebuilding database %s into %s\n"),
+ rpmlog(RPMLOG_DEBUG, _("rebuilding database %s into %s\n"),
rootdbpath, newrootdbpath);
if (!access(newrootdbpath, F_OK)) {
@@ -3486,7 +3486,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
goto exit;
}
- rpmlog(RPMMESS_DEBUG, _("creating directory %s\n"), newrootdbpath);
+ rpmlog(RPMLOG_DEBUG, _("creating directory %s\n"), newrootdbpath);
if (Mkdir(newrootdbpath, 0755)) {
rpmlog(RPMERR_MKDIR, _("creating directory %s: %s\n"),
newrootdbpath, strerror(errno));
@@ -3497,7 +3497,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
_rebuildinprogress = 0;
- rpmlog(RPMMESS_DEBUG, _("opening old database with dbapi %d\n"),
+ rpmlog(RPMLOG_DEBUG, _("opening old database with dbapi %d\n"),
_dbapi);
if (openDatabase(prefix, dbpath, _dbapi, &olddb, O_RDONLY, 0644,
RPMDB_FLAG_MINIMAL)) {
@@ -3506,7 +3506,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
}
_dbapi = olddb->db_api;
_rebuildinprogress = 1;
- rpmlog(RPMMESS_DEBUG, _("opening new database with dbapi %d\n"),
+ rpmlog(RPMLOG_DEBUG, _("opening new database with dbapi %d\n"),
_dbapi_rebuild);
(void) rpmDefineMacro(NULL, "_rpmdb_rebuild %{nil}", -1);
if (openDatabase(prefix, newdbpath, _dbapi_rebuild, &newdb, O_RDWR | O_CREAT, 0644, 0)) {
@@ -3607,7 +3607,7 @@ int rpmdbRebuild(const char * prefix, rpmts ts,
exit:
if (removedir && !(rc == 0 && nocleanup)) {
- rpmlog(RPMMESS_DEBUG, _("removing directory %s\n"), newrootdbpath);
+ rpmlog(RPMLOG_DEBUG, _("removing directory %s\n"), newrootdbpath);
if (Rmdir(newrootdbpath))
rpmlog(RPMMESS_ERROR, _("failed to remove directory %s: %s\n"),
newrootdbpath, strerror(errno));
diff --git a/rpmdb/sqlite.c b/rpmdb/sqlite.c
index 64c510733..3955a9b49 100644
--- a/rpmdb/sqlite.c
+++ b/rpmdb/sqlite.c
@@ -742,7 +742,7 @@ enterChroot(dbi);
(void) sqlite3_close(sqldb->db);
- rpmlog(RPMMESS_DEBUG, _("closed sql db %s\n"),
+ rpmlog(RPMLOG_DEBUG, _("closed sql db %s\n"),
dbi->dbi_subfile);
dbi->dbi_stats = _free(dbi->dbi_stats);
@@ -832,7 +832,7 @@ enterChroot(dbi);
dbfname = rpmGenPath(dbhome, dbi->dbi_file, NULL);
- rpmlog(RPMMESS_DEBUG, _("opening sql db %s (%s) mode=0x%x\n"),
+ rpmlog(RPMLOG_DEBUG, _("opening sql db %s (%s) mode=0x%x\n"),
dbfname, dbi->dbi_subfile, dbi->dbi_mode);
/* Open the Database */
@@ -851,7 +851,7 @@ enterChroot(dbi);
dbi->dbi_db = (DB *)sqldb;
if (sql_errcode != NULL) {
- rpmlog(RPMMESS_DEBUG, "Unable to open database: %s\n", sql_errcode);
+ rpmlog(RPMLOG_DEBUG, "Unable to open database: %s\n", sql_errcode);
rc = EINVAL;
}
@@ -1213,7 +1213,7 @@ assert(scp->av != NULL);
} else {
if ( sql_rc ) {
- rpmlog(RPMMESS_DEBUG, "db_info failed %s (%d)\n",
+ rpmlog(RPMLOG_DEBUG, "db_info failed %s (%d)\n",
scp->pzErrmsg, sql_rc);
}
rpmlog(RPMMESS_WARNING, "Unable to determine DB endian.\n");
@@ -1344,11 +1344,11 @@ enterChroot(dbi);
assert(scp->av != NULL);
nkeys = strtol(scp->av[1], NULL, 10);
- rpmlog(RPMMESS_DEBUG, " stat on %s nkeys %ld\n",
+ rpmlog(RPMLOG_DEBUG, " stat on %s nkeys %ld\n",
dbi->dbi_subfile, nkeys);
} else {
if ( rc ) {
- rpmlog(RPMMESS_DEBUG, "stat failed %s (%d)\n",
+ rpmlog(RPMLOG_DEBUG, "stat failed %s (%d)\n",
scp->pzErrmsg, rc);
}
}