From 567558f54be68e31c68186de82ce8f4105685f9d Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sat, 23 May 2009 02:26:45 +0000 Subject: [PATCH] * Logging is more helpful when you log which files an error occured on... --- inotify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inotify.c b/inotify.c index ad7be12..eecb939 100644 --- a/inotify.c +++ b/inotify.c @@ -61,14 +61,14 @@ add_watch(int fd, const char * path) wd = inotify_add_watch(fd, path, IN_CREATE|IN_CLOSE_WRITE|IN_DELETE|IN_MOVE); if( wd < 0 ) { - DPRINTF(E_ERROR, L_INOTIFY, "inotify_add_watch() [%s]\n", strerror(errno)); + DPRINTF(E_ERROR, L_INOTIFY, "inotify_add_watch(%s) [%s]\n", path, strerror(errno)); return -1; } nw = malloc(sizeof(struct watch)); if( nw == NULL ) { - DPRINTF(E_ERROR, L_INOTIFY, "malloc()\n"); + DPRINTF(E_ERROR, L_INOTIFY, "malloc() error\n"); return -1; } nw->wd = wd;