summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
authorpixel <pixel>2003-07-13 01:32:43 +0000
committerpixel <pixel>2003-07-13 01:32:43 +0000
commit2a1525eb8cef13000fc10126f770541b2115ff89 (patch)
treebe6312f2dd6fe8454e8a7574f95b5eb44564d585 /lib/Input.cc
parentc477f1a35d23a9a3d3e29622b013532343c078cc (diff)
Misc fixes
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index ed549ec..d846acd 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -5,6 +5,8 @@
#include <sys/stat.h>
#include <fcntl.h>
+#define DEBUG
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -70,10 +72,11 @@ Input::Input(const String & no) throw (GeneralException) :
n(no) {
#ifdef DEBUG
- fprintf(stderr, _("Opening file %s, Input at %p\n"), no.to_charp(), this);
+ printm(M_BARE, String(_("Opening file")) + no + _("Input at %p\n"), this);
#endif
if (GetHandle() < 0) {
+ printm(M_BARE, "Got handle: %i\n", GetHandle());
throw IOGeneral(String(_("Error opening file ")) + no + _(" for reading: ") + strerror(errno));
}