diff options
Diffstat (limited to 'server/src/inotify.cc')
-rw-r--r-- | server/src/inotify.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/src/inotify.cc b/server/src/inotify.cc index 1515387..dd5ec52 100644 --- a/server/src/inotify.cc +++ b/server/src/inotify.cc @@ -97,10 +97,10 @@ INotify::Event::Event(struct inotify_event *event, std::string name) this->_file = ""; } - PRACRO_DEBUG(inotify, "Event [%s] %s (%s)\n", - mask2asc(_mask).c_str(), - _name.c_str(), - _file.c_str()); + DEBUG(inotify, "Event [%s] %s (%s)\n", + mask2asc(_mask).c_str(), + _name.c_str(), + _file.c_str()); } bool INotify::Event::isAttributeChangeEvent() @@ -247,7 +247,7 @@ static inline bool isdir(std::string name) void INotify::addDirectory(std::string name, depth_t depth, uint32_t mask) { - PRACRO_DEBUG(inotify, "Adding dir: %s\n", name.c_str()); + DEBUG(inotify, "Adding dir: %s\n", name.c_str()); int depth_mask = 0; if(depth == WATCH_DEEP || depth == WATCH_DEEP_FOLLOW) { @@ -256,8 +256,8 @@ void INotify::addDirectory(std::string name, depth_t depth, uint32_t mask) DIR *dir = opendir(name.c_str()); if(!dir) { - PRACRO_ERR(inotify, "Could not open directory: %s - %s\n", - name.c_str(), strerror(errno)); + ERR(inotify, "Could not open directory: %s - %s\n", + name.c_str(), strerror(errno)); return; } @@ -277,7 +277,7 @@ void INotify::addDirectory(std::string name, depth_t depth, uint32_t mask) int wd = inotify_add_watch(ifd, name.c_str(), mask | IN_ONLYDIR | depth_mask); if(wd == -1) { - PRACRO_ERR(inotify, "INotify: Add watch failed on %s\n", name.c_str()); + ERR(inotify, "INotify: Add watch failed on %s\n", name.c_str()); return; } |