diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-21 17:23:54 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-21 17:23:54 +0100 |
commit | 9595b61e1c5d207ad05f5cc67164bbba6f9a7879 (patch) | |
tree | 732d7b823dfaf508e7246ae1b7db3758cbc27006 /src/log | |
parent | 38fe735f2ef179d8018d5452ff2ff85dc03f2616 (diff) | |
download | wolfbones-9595b61e1c5d207ad05f5cc67164bbba6f9a7879.tar.gz wolfbones-9595b61e1c5d207ad05f5cc67164bbba6f9a7879.tar.bz2 |
fixed messages again
Diffstat (limited to 'src/log')
-rwxr-xr-x | src/log/create_wolfmsg.pl | 5 | ||||
-rw-r--r-- | src/log/wolfmsg.mc | 156 |
2 files changed, 82 insertions, 79 deletions
diff --git a/src/log/create_wolfmsg.pl b/src/log/create_wolfmsg.pl index 6a4d8e7..13478cb 100755 --- a/src/log/create_wolfmsg.pl +++ b/src/log/create_wolfmsg.pl @@ -88,6 +88,7 @@ for( ;; ) { my $func = $1; $code = $'; +AGAIN: $expanded_code =~ /wolf_log\s*\(([^\;]*)/s; my $expanded_func = $1; $expanded_code = $'; @@ -114,10 +115,12 @@ for( ;; ) { } # fetch expanded message id from the CPP output - my $messageid_number; + my $messageid_number = 9999999; if( $expanded_func =~ /\s*(WOLF_LOG_[^\, ]+)\,\s*(\d+)\,\s*([^\,]+)/ ) { my $expanded_messageid = $3; $messageid_number = eval $expanded_messageid; + } else { + goto AGAIN; } print <<EOF; diff --git a/src/log/wolfmsg.mc b/src/log/wolfmsg.mc index 18c6876..cc9c820 100644 --- a/src/log/wolfmsg.mc +++ b/src/log/wolfmsg.mc @@ -53,7 +53,7 @@ FacilityNames = ( MessageIdTypedef = DWORD -MessageId = +MessageId = 2029 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CLOSE_FD @@ -63,7 +63,7 @@ Error while closing file descriptor %1: %2 Language = German TODO: Gettext here.. . -MessageId = 2029 +MessageId = 2030 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_RETRIEVING_MAXNOFFDS_FAILED @@ -73,7 +73,7 @@ Unable to retrieve maximal number of files: %1 Language = German TODO: Gettext here.. . -MessageId = 2030 +MessageId = 2031 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_CLOSING_ALL_FDS @@ -83,7 +83,7 @@ Closing all filedescriptors up to %ld Language = German TODO: Gettext here.. . -MessageId = 2031 +MessageId = 2032 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_FD_AS_DEV_NULL @@ -93,7 +93,7 @@ Unable to open fd %1 as /dev/null: %2 Language = German TODO: Gettext here.. . -MessageId = 2032 +MessageId = 2033 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FD_NUMBERS_WRONG @@ -103,7 +103,7 @@ Something is wrong with the file descriptors (expecting %1, got %2)! Language = German TODO: Gettext here.. . -MessageId = 2033 +MessageId = 2034 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_WRITE_FAILED @@ -113,7 +113,7 @@ Error in atomar write to fd %1: %2 Language = German TODO: Gettext here.. . -MessageId = 2034 +MessageId = 2035 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_WRITE_WRONG_OCTETS @@ -123,7 +123,7 @@ Unexpected number of octets %zd in atomar write to fd %1 (expected %zd) Language = German TODO: Gettext here.. . -MessageId = 2035 +MessageId = 2036 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_READ_FAILED @@ -133,7 +133,7 @@ Error in atmoar read from fd %1: %2 Language = German TODO: Gettext here.. . -MessageId = 2036 +MessageId = 2037 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIPE_ATOMIC_READ_WRONG_OCTETS @@ -143,7 +143,7 @@ Unexpected number of octets %zd in atomar read from fd %1 (expected %zd) Language = German TODO: Gettext here.. . -MessageId = 2037 +MessageId = 2038 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_ALREADY_RUNNING @@ -153,7 +153,7 @@ Already running as daemon! Language = German TODO: Gettext here.. . -MessageId = 2038 +MessageId = 2039 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_START_AS_NON_ROOT @@ -163,7 +163,7 @@ Unable to start daemon as not root user! Language = German TODO: Gettext here.. . -MessageId = 2039 +MessageId = 2040 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_EXIT_CODE_PIPE @@ -173,7 +173,7 @@ Unable to create exit code pipe: %1 Language = German TODO: Gettext here.. . -MessageId = 2040 +MessageId = 2041 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_EXIT_CODE_PIPE_CREATED @@ -183,7 +183,7 @@ Created exit code pipe (%1,%2) Language = German TODO: Gettext here.. . -MessageId = 2041 +MessageId = 2042 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FIRST_FORK_FAILED @@ -193,7 +193,7 @@ Unable to fork the first time: %1 Language = German TODO: Gettext here.. . -MessageId = 2042 +MessageId = 2043 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_FIRST_FORK_REACHED @@ -203,7 +203,7 @@ First fork reached Language = German TODO: Gettext here.. . -MessageId = 2043 +MessageId = 2044 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_AFTER_FIRST_FORK @@ -213,7 +213,7 @@ Parent after first fork: child is %1 Language = German TODO: Gettext here.. . -MessageId = 2044 +MessageId = 2045 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_PARENT_PIPE @@ -223,7 +223,7 @@ Unable to create parent pipe: %1 Language = German TODO: Gettext here.. . -MessageId = 2045 +MessageId = 2046 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_PIPE_CREATED @@ -233,17 +233,17 @@ Created parent pipe (%1,%2) Language = German TODO: Gettext here.. . -MessageId = 2046 +MessageId = 2076 Severity = Error Facility = Application -SymbolicName = WOLF_MSG_DAEMON_CANT_SET_NEW_PROCESS_GROUP +SymbolicName = WOLF_MSG_DAEMON_CANT_SET_NEW_PROCESS_GROUP_PARENT Language = English Starting new process group session for the parent of the daemon failed: %1 . Language = German TODO: Gettext here.. . -MessageId = 2047 +MessageId = 2048 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SECOND_FORK_FAILED @@ -253,7 +253,7 @@ Unable to fork the second time: %1 Language = German TODO: Gettext here.. . -MessageId = 2048 +MessageId = 2049 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_SECOND_FORK_REACHED @@ -263,7 +263,7 @@ Second fork reached Language = German TODO: Gettext here.. . -MessageId = 2049 +MessageId = 2050 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_AFTER_SECOND_FORK @@ -273,7 +273,7 @@ Parent after second fork: child (and daemon) is %1 Language = German TODO: Gettext here.. . -MessageId = 2050 +MessageId = 2047 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_SET_NEW_PROCESS_GROUP @@ -283,7 +283,7 @@ Starting new process group for daemon session failed: %1 Language = German TODO: Gettext here.. . -MessageId = 2047 +MessageId = 2051 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CHANGE_ROOT_DIR @@ -293,7 +293,7 @@ Changing to root diretory failed: %1 Language = German TODO: Gettext here.. . -MessageId = 2051 +MessageId = 2052 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_CHANGED_ROOT_DIR @@ -303,7 +303,7 @@ Changed to root directory / Language = German TODO: Gettext here.. . -MessageId = 2052 +MessageId = 2053 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_UMASK @@ -313,7 +313,7 @@ Switched umask from %04o to %04o Language = German TODO: Gettext here.. . -MessageId = 2053 +MessageId = 2054 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_DAEMON_ALREADY_RUNNING_WITH_PID @@ -323,7 +323,7 @@ Another daemon is already running with pid '%1', can't start! Language = German TODO: Gettext here.. . -MessageId = 2054 +MessageId = 2055 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_UMASK_FINAL @@ -333,7 +333,7 @@ Switched umask from %04o to %04o Language = German TODO: Gettext here.. . -MessageId = 2055 +MessageId = 2056 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GROUP_NOT_FOUND @@ -343,7 +343,7 @@ No group '%1' found Language = German TODO: Gettext here.. . -MessageId = 2056 +MessageId = 2057 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GETGRNAM_FAILED @@ -353,7 +353,7 @@ Unable to retrieve group information for group '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2057 +MessageId = 2058 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_USER_NOT_FOUND @@ -363,7 +363,7 @@ No user '%1' found Language = German TODO: Gettext here.. . -MessageId = 2058 +MessageId = 2059 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GETPWNAM_FAILED @@ -373,7 +373,7 @@ Unable to retrieve user information for user '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2059 +MessageId = 2060 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SETTING_UNPRIVILEGED_GROUP_FAILED @@ -383,7 +383,7 @@ Setting unprivileged group failed: %1 Language = German TODO: Gettext here.. . -MessageId = 2060 +MessageId = 2061 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SETTING_UNPRIVILEGED_USER_FAILED @@ -393,7 +393,7 @@ Setting unprivileged user failed: %1 Language = German TODO: Gettext here.. . -MessageId = 2061 +MessageId = 2062 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_SWITCHED_USER @@ -403,7 +403,7 @@ Switched to user '%1' (%2) and group '%3' (%4) Language = German TODO: Gettext here.. . -MessageId = 2062 +MessageId = 2063 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_EXIT_CALLED @@ -413,7 +413,7 @@ daemon_exit called int state %1 (error %2) Language = German TODO: Gettext here.. . -MessageId = 2063 +MessageId = 2064 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_WAITING_FOR_EXIT_CODE_ON_PIPE @@ -423,7 +423,7 @@ Waiting on exit_code pipe for exit code Language = German TODO: Gettext here.. . -MessageId = 2064 +MessageId = 2065 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_GRAND_PARENT @@ -433,7 +433,7 @@ Terminating grand-parent of daemon with code %1 (PID: %lu) Language = German TODO: Gettext here.. . -MessageId = 2065 +MessageId = 2066 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_WAITING_FOR_TERMINATION @@ -443,7 +443,7 @@ Waiting on parent pipe for termination signal Language = German TODO: Gettext here.. . -MessageId = 2066 +MessageId = 2067 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_PARENT_GOT_TERMINATION @@ -453,7 +453,7 @@ Parent got termination (pidfile lock: %1, run: %2, fd: %3).. cleaning up now (PI Language = German TODO: Gettext here.. . -MessageId = 2067 +MessageId = 2068 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_PARENT @@ -463,7 +463,7 @@ Terminating parent of daemon (PID %lu) Language = German TODO: Gettext here.. . -MessageId = 2068 +MessageId = 2069 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_DAEMON_OK @@ -473,7 +473,7 @@ Terminating daemon (PID: %lu) Language = German TODO: Gettext here.. . -MessageId = 2069 +MessageId = 2070 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_TERMINATING_DAEMON_ERROR @@ -483,7 +483,7 @@ Terminating daemon (PID: %lu) with error Language = German TODO: Gettext here.. . -MessageId = 2070 +MessageId = 2071 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CREATE_SIGNAL_PIPE @@ -493,7 +493,7 @@ Unable to create signal pipe: %1 Language = German TODO: Gettext here.. . -MessageId = 2071 +MessageId = 2072 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_SIGNAL_PIPE_CREATED @@ -503,7 +503,7 @@ Created signal pipe (%1,%2) Language = German TODO: Gettext here.. . -MessageId = 2072 +MessageId = 2073 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_SELECT_FAILED_WAITING_FOR_SIGNAL @@ -513,7 +513,7 @@ Error in select when waiting for signal from pipe: %1 Language = German TODO: Gettext here.. . -MessageId = 2073 +MessageId = 2074 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_READ_SIGNAL_FROM_PIPE @@ -523,7 +523,7 @@ Error while reading a signal from the pipe: %1 Language = German TODO: Gettext here.. . -MessageId = 2074 +MessageId = 2075 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_NON_ATOMIC_READ_ON_SIGNAL_PIPE @@ -533,7 +533,7 @@ Unexpected error in read: result is %1 Language = German TODO: Gettext here.. . -MessageId = 2075 +MessageId = 2008 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_NO_PIDFILE @@ -543,7 +543,7 @@ No pidfile '%1' found, daemon is not running Language = German TODO: Gettext here.. . -MessageId = 2008 +MessageId = 2009 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_PIDFILE @@ -553,7 +553,7 @@ Unable to open pidfile '%1' for reading: %2 Language = German TODO: Gettext here.. . -MessageId = 2009 +MessageId = 2010 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_ANOTHER_IS_RUNNING @@ -563,7 +563,7 @@ Another process locks the pidfile, daemon already running Language = German TODO: Gettext here.. . -MessageId = 2010 +MessageId = 2011 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_LOCK_PIDFILE @@ -573,7 +573,7 @@ Unable to lock pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2011 +MessageId = 2012 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_READ_PID_FROM_PIDFILE @@ -583,7 +583,7 @@ Unable to read pid from pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2012 +MessageId = 2013 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIDFILE_WITH_ILLEGAL_DATA @@ -593,7 +593,7 @@ pidfile '%1' contains invalid data, can't read PID from it! Language = German TODO: Gettext here.. . -MessageId = 2013 +MessageId = 2014 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_FOUND_PID_IN_PIDFILE @@ -603,7 +603,7 @@ Found PID '%lu' in pidfile Language = German TODO: Gettext here.. . -MessageId = 2014 +MessageId = 2015 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_FOUND_PID_BUT_NO_PROCESS_RUNNING @@ -613,7 +613,7 @@ Found PID '%lu' in pidfile '%1', but no such process is running. Check and manua Language = German TODO: Gettext here.. . -MessageId = 2015 +MessageId = 2016 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PROCESS_ALIVE_CHECK_FAILED @@ -623,7 +623,7 @@ Can't check if process with PID '%lu' is alive: %1 Language = German TODO: Gettext here.. . -MessageId = 2016 +MessageId = 2017 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_ALREADY_RUNNING_WITH_PID @@ -633,7 +633,7 @@ A process with PID '%lu' is already running Language = German TODO: Gettext here.. . -MessageId = 2017 +MessageId = 2009 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_OPEN_PIDFILE @@ -643,7 +643,7 @@ Unable to open pidfile '%1' for writing: %2 Language = German TODO: Gettext here.. . -MessageId = 2009 +MessageId = 2018 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_PIDFILE_IN_USE @@ -653,7 +653,7 @@ Unable to lock pidfile '%1' after creation, daemon started in parallel? Language = German TODO: Gettext here.. . -MessageId = 2018 +MessageId = 2019 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_LOCK_PIDFILE_AFTER_CREATION @@ -663,7 +663,7 @@ Unable to lock pidfile '%1' after creation: %2 Language = German TODO: Gettext here.. . -MessageId = 2019 +MessageId = 2020 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_TRUNCATE_PIDFILE @@ -673,7 +673,7 @@ Unable to truncate the pidfile '%1' before writing to it Language = German TODO: Gettext here.. . -MessageId = 2020 +MessageId = 2021 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_WRITE_PID_INTO_PIDFILE @@ -683,7 +683,7 @@ Unable to write PID into the pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2021 +MessageId = 2022 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_ATOMIC_PIDFILE_WRITE_FAILED @@ -693,7 +693,7 @@ Non-atomic write failed when storing the PID into the pidfile '%1' Language = German TODO: Gettext here.. . -MessageId = 2022 +MessageId = 2023 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_STORED_PIDFILE @@ -703,7 +703,7 @@ Stored '%lu' into the pidfile '%1' and locked it Language = German TODO: Gettext here.. . -MessageId = 2023 +MessageId = 2024 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_RELEASING_PIDFILE @@ -713,7 +713,7 @@ Releasing (unlocking/closing) pidfile '%1' (fd: %2, locked: %3) Language = German TODO: Gettext here.. . -MessageId = 2024 +MessageId = 2025 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_UNLOCK_PIDFILE @@ -723,7 +723,7 @@ Unable to unlock the pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2025 +MessageId = 2026 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_CLOSE_PIDFILE @@ -733,7 +733,7 @@ Unable to close the pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2026 +MessageId = 2027 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_REMOVING_PIDFILE @@ -743,7 +743,7 @@ Removing pidfile '%1' (fd: %2, locked: %3, running: %4) Language = German TODO: Gettext here.. . -MessageId = 2027 +MessageId = 2028 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_REMOVE_PIDFILE @@ -753,7 +753,7 @@ Unable to remove the pidfile '%1': %2 Language = German TODO: Gettext here.. . -MessageId = 2028 +MessageId = 2001 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_IGNORE_SIGNAL @@ -763,7 +763,7 @@ Can't ignore signal handler for signal '%1' (%2): %3 Language = German TODO: Gettext here.. . -MessageId = 2001 +MessageId = 2002 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_IGNORE_SIGNAL @@ -773,7 +773,7 @@ Ignoring signal handler for signal '%1' (%2) Language = German TODO: Gettext here.. . -MessageId = 2002 +MessageId = 2003 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_CRITICAL_SIGNAL @@ -783,7 +783,7 @@ Can't install empty signal handler for signal '%1' (%2): %3 Language = German TODO: Gettext here.. . -MessageId = 2003 +MessageId = 2004 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_CRITICAL_SIGNAL @@ -793,7 +793,7 @@ Installed empty signal handler for signal '%1' (%2) Language = German TODO: Gettext here.. . -MessageId = 2004 +MessageId = 2005 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_GOT_SIGNAL @@ -803,7 +803,7 @@ Got signal '%1' (%2) Language = German TODO: Gettext here.. . -MessageId = 2005 +MessageId = 2006 Severity = Error Facility = Application SymbolicName = WOLF_MSG_DAEMON_CANT_INSTALL_FUNC_SIGNAL @@ -813,7 +813,7 @@ Can't install signal handler for signal '%1' (%2): %3 Language = German TODO: Gettext here.. . -MessageId = 2006 +MessageId = 2007 Severity = Informational Facility = Application SymbolicName = WOLF_MSG_DAEMON_FUNC_SIGNAL |