summaryrefslogtreecommitdiff
path: root/server/src/inotify.cc
diff options
context:
space:
mode:
authordeva <deva>2010-07-05 09:01:54 +0000
committerdeva <deva>2010-07-05 09:01:54 +0000
commitfbba835d7efaa4ee1d28bf5c7e2232e53d84af5e (patch)
tree5b71566f174143fea11e21e0c034bd6a1026c03d /server/src/inotify.cc
parent71318f4e56dd1467b071404c61f686745cf3dfc4 (diff)
Remove PRACRO_ prefix from debug macros.
Diffstat (limited to 'server/src/inotify.cc')
-rw-r--r--server/src/inotify.cc16
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;
}