From fbba835d7efaa4ee1d28bf5c7e2232e53d84af5e Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 5 Jul 2010 09:01:54 +0000 Subject: Remove PRACRO_ prefix from debug macros. --- server/src/inotify.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server/src/inotify.cc') 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; } -- cgit v1.2.3