diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-11-19 16:25:24 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-11-19 16:25:24 +0200 |
commit | 43c5de66fb90cbc59dc23eb0774d66c66d34b37d (patch) | |
tree | 1e43219542c3ce060b4ce3c430a38aed45a62767 /tools | |
parent | db4e34966ed9d52a920ab1b135309e6e21f12473 (diff) | |
download | rpm-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.tar.gz rpm-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.tar.bz2 rpm-43c5de66fb90cbc59dc23eb0774d66c66d34b37d.zip |
Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rpmgraph.c | 6 | ||||
-rw-r--r-- | tools/rpmsort.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/rpmgraph.c b/tools/rpmgraph.c index 63f95fa00..cb804f4dc 100644 --- a/tools/rpmgraph.c +++ b/tools/rpmgraph.c @@ -115,7 +115,7 @@ restart: /* Try to read the header from a package file. */ fd = Fopen(*fnp, "r.ufdio"); if (fd == NULL || Ferror(fd)) { - rpmlog(RPMERR_OPEN, _("open of %s failed: %s\n"), *fnp, + rpmlog(RPMLOG_ERR, _("open of %s failed: %s\n"), *fnp, Fstrerror(fd)); if (fd) { Fclose(fd); @@ -152,7 +152,7 @@ maybe_manifest: /* Try to read a package manifest. */ fd = Fopen(*fnp, "r.fpio"); if (fd == NULL || Ferror(fd)) { - rpmlog(RPMERR_OPEN, _("open of %s failed: %s\n"), *fnp, + rpmlog(RPMLOG_ERR, _("open of %s failed: %s\n"), *fnp, Fstrerror(fd)); if (fd) { Fclose(fd); @@ -165,7 +165,7 @@ maybe_manifest: /* Read list of packages from manifest. */ rc = rpmReadPackageManifest(fd, &argc, &argv); if (rc) - rpmlog(RPMERR_MANIFEST, _("%s: read manifest failed: %s\n"), + rpmlog(RPMLOG_NOTICE, _("%s: read manifest failed: %s\n"), fileURL, Fstrerror(fd)); Fclose(fd); fd = NULL; diff --git a/tools/rpmsort.c b/tools/rpmsort.c index 31b2cd065..15bada78a 100644 --- a/tools/rpmsort.c +++ b/tools/rpmsort.c @@ -155,7 +155,7 @@ restart: /* Try to read the header from a package file. */ fd = Fopen(*fnp, "r.ufdio"); if (fd == NULL || Ferror(fd)) { - rpmlog(RPMERR_OPEN, _("open of %s failed: %s\n"), *fnp, + rpmlog(RPMLOG_ERR, _("open of %s failed: %s\n"), *fnp, Fstrerror(fd)); if (fd) Fclose(fd); numFailed++; *fnp = NULL; @@ -180,7 +180,7 @@ restart: /* Try to read a package manifest. */ fd = Fopen(*fnp, "r.fpio"); if (fd == NULL || Ferror(fd)) { - rpmlog(RPMERR_OPEN, _("open of %s failed: %s\n"), *fnp, + rpmlog(RPMLOG_ERR, _("open of %s failed: %s\n"), *fnp, Fstrerror(fd)); if (fd) Fclose(fd); numFailed++; *fnp = NULL; @@ -190,7 +190,7 @@ restart: /* Read list of packages from manifest. */ rc = rpmReadPackageManifest(fd, &argc, &argv); if (rc) - rpmlog(RPMERR_MANIFEST, _("%s: read manifest failed: %s\n"), + rpmlog(RPMLOG_NOTICE, _("%s: read manifest failed: %s\n"), fileURL, Fstrerror(fd)); Fclose(fd); |