From 10d0f503fb68946c265bad18dd755fdc816075c1 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 17 Oct 2011 21:02:52 -0700 Subject: Adding an early version of the 'engine debug' facility. --- src/Input.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Input.cc') diff --git a/src/Input.cc b/src/Input.cc index 94cfe8f..8f16321 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -6,6 +6,7 @@ #include "eio.h" #include "Input.h" #include "Task.h" +#include "Printer.h" #ifdef _WIN32 const char * strerror_r(int errorno, char * buf, size_t bufsize) { @@ -49,6 +50,8 @@ static int eioStatsDone(eio_req * req) { Balau::Input::Input(const char * fname) throw (GeneralException) : m_fd(-1), m_size(-1), m_mtime(-1) { m_name.set("Input(%s)", fname); + Printer::elog(E_INPUT, "Opening file %s", fname); + cbResults_t cbResults; eio_req * r = eio_open(fname, O_RDONLY, 0, 0, eioDone, &cbResults); Assert(r != 0); -- cgit v1.2.3