64-bit fsnotifier for Linux (fixed)

This commit is contained in:
Roman Shevchenko
2010-04-27 21:35:54 +04:00
parent eda0bd9b85
commit 8d420b1971
2 changed files with 6 additions and 3 deletions
Binary file not shown.
+6 -3
View File
@@ -148,9 +148,10 @@ static void init_log() {
void userlog(int priority, const char* format, ...) {
va_list ap;
va_start(ap, format);
va_start(ap, format);
vsyslog(priority, format, ap);
va_end(ap);
if (self_test) {
const char* level = "debug";
@@ -160,11 +161,13 @@ void userlog(int priority, const char* format, ...) {
case LOG_INFO: level = " info"; break;
}
printf("fsnotifier[%d] %s: ", getpid(), level);
va_start(ap, format);
vprintf(format, ap);
va_end(ap);
printf("\n");
}
va_end(ap);
}