--- embedaddon/smartmontools/os_win32/syslog_win32.cpp 2012/02/21 16:32:16 1.1.1.1 +++ embedaddon/smartmontools/os_win32/syslog_win32.cpp 2013/07/22 01:17:36 1.1.1.2 @@ -3,7 +3,7 @@ * * Home page of code is: http://smartmontools.sourceforge.net * - * Copyright (C) 2004-8 Christian Franke + * Copyright (C) 2004-12 Christian Franke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -11,15 +11,13 @@ * any later version. * * You should have received a copy of the GNU General Public License - * (for example COPYING); if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * (for example COPYING); If not, see . * */ // Win32 Emulation of syslog() for smartd // Writes to windows event log on NT4/2000/XP // (Register syslogevt.exe as event message file) -// Writes to file ".log" on 9x/ME. // If facility is set to LOG_LOCAL[0-7], log is written to // file ".log", stdout, stderr, "[1-5].log". @@ -35,8 +33,8 @@ #define WIN32_LEAN_AND_MEAN #include // RegisterEventSourceA(), ReportEventA(), ... -const char *syslog_win32_c_cvsid = "$Id: syslog_win32.cpp,v 1.1.1.1 2012/02/21 16:32:16 misho Exp $" -SYSLOG_H_CVSID; +const char *syslog_win32_cpp_cvsid = "$Id: syslog_win32.cpp,v 1.1.1.2 2013/07/22 01:17:36 misho Exp $" + SYSLOG_H_CVSID; #ifdef _MSC_VER // MSVC @@ -350,12 +348,8 @@ void openlog(const char *ident, int logopt, int facili // Cannot open => Use logfile long err = GetLastError(); strcat(strcpy(sl_logpath, sl_ident), ".log"); - if (GetVersion() & 0x80000000) - fprintf(stderr, "%s: No event log on Win9x/ME, writing to %s\n", - sl_ident, sl_logpath); - else - fprintf(stderr, "%s: Cannot register event source (Error=%ld), writing to %s\n", - sl_ident, err, sl_logpath); + fprintf(stderr, "%s: Cannot register event source (Error=%ld), writing to %s\n", + sl_ident, err, sl_logpath); } else { // Start event log thread