summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index 8ce13cf..bfb771c 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -91,7 +91,7 @@ Input::Input(const String & no) throw (GeneralException) :
}
} else {
#ifdef DEBUG
- std::cerr << _("Opening file in archive, position ") << results.ptr << std::endl;
+ printm(M_INFO, String(_("Opening file in archive, position ")) + results.ptr + "\n");
#endif
size = results.size;
seek(results.ptr, SEEK_SET);
@@ -151,14 +151,14 @@ off_t Input::seek(off_t offset, int whence) throw (GeneralException) {
int Input::wrapopen(const String & fname, openresults_t * results) {
#ifdef DEBUG
- std::cerr << _("Wrap-opening ") << fname << std::endl;
+ printm(M_INFO, _("Wrap-opening ") + fname + "\n");
#endif
if (fname[0] != '/') {
bool t;
t = Archive::inarchive(fname);
if (t) {
#ifdef DEBUG
- std::cerr << _("Trying to open the file in archive, since it seems to be here\n");
+ printm(M_BARE, _("Trying to open the file in archive, since it seems to be here\n"));
#endif
return Archive::open(fname, results);
}
@@ -211,7 +211,7 @@ Archive::Archive(const String & fname, int atype) throw (GeneralException) :
size = archive.readU32();
archive.read(buffer, 1);
#ifdef DEBUG
- std::cerr << _("Adding file `") << ifname << _("' to node `") << p->name << "'\n";
+ printm(M_BARE, _("Adding file `") + ifname + _("' to node `") + p->name + "'\n");
#endif
t = new FileTree(ifname, size, buffer[0], p);
if (buffer[0])
@@ -247,11 +247,11 @@ bool Archive::inarchive(const String & fname) {
Archive * p;
for (p = header; p; p = p->next) {
#ifdef DEBUG
- std::cerr << _("Looking for file `") << fname << _("' in archive ") << p->name << std::endl;
+ printm(M_BARE, _("Looking for file `") + fname + _("' in archive ") + p->name + "\n");
#endif
if (p->inarchivein(fname)) {
#ifdef DEBUG
- std::cerr << _("File `") << fname << _("' found in archive ") << p->name << std::endl;
+ printm(M_BARE, _("File `") + fname + _("' found in archive ") + p->name + "\n");
#endif
return true;
}
@@ -287,7 +287,7 @@ bool Archive::inarchivein(const String & fname) {
name = "";
}
#ifdef DEBUG
- std::cerr << _("Checking against node `") << p->name << "'\n";
+ printm(M_BARE, _("Checking against node `") + p->name + "'\n");
#endif
while (p) {
if (p->name == reste) {