diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-02-08 16:45:36 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-02-08 16:45:36 +0100 |
commit | 7b3ea9022b57701e7fe156052c8e8af900f04eac (patch) | |
tree | 47f3cdb32d34b6076bdb524dcccaa5fbf51f9b77 /tests/daemon | |
parent | 56eef17b90b8b119e5822005d5cbfb14ec3adcb4 (diff) | |
download | wolfbones-7b3ea9022b57701e7fe156052c8e8af900f04eac.tar.gz wolfbones-7b3ea9022b57701e7fe156052c8e8af900f04eac.tar.bz2 |
more renaming of logging functions and more documentation of them
Diffstat (limited to 'tests/daemon')
-rw-r--r-- | tests/daemon/testd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/daemon/testd.c b/tests/daemon/testd.c index 732bbf4..b0251b6 100644 --- a/tests/daemon/testd.c +++ b/tests/daemon/testd.c @@ -24,7 +24,7 @@ static int parse_options_and_arguments( int argc, char *argv[], struct gengetopt } static int test_config( const char *filename ) { - LOG( log_NOTICE, "Testing configuraton read from '%s'", filename ); + WOLF_LOG( log_NOTICE, "Testing configuraton read from '%s'", filename ); return EXIT_SUCCESS; } @@ -107,7 +107,7 @@ int main( int argc, char *argv[] ) { } } - LOG( log_NOTICE, "Started %s daemon", CMDLINE_PARSER_PACKAGE ); + WOLF_LOG( log_NOTICE, "Started %s daemon", CMDLINE_PARSER_PACKAGE ); while( ( sig != SIGTERM ) && ( sig != SIGINT ) && ( sig != -1 ) ) { sig = wolf_signal_suspend( 60, &error ); switch( sig ) { @@ -115,17 +115,17 @@ int main( int argc, char *argv[] ) { break; case -1: /* internal error */ - LOG( log_CRIT, "Suspending on UNIX signal resulted in an error %d!", + WOLF_LOG( log_CRIT, "Suspending on UNIX signal resulted in an error %d!", error ); break; case SIGHUP: - LOG( log_NOTICE, "Rereading configuration" ); + WOLF_LOG( log_NOTICE, "Rereading configuration" ); break; case SIGTERM: case SIGINT: - LOG( log_NOTICE, "Got termination signal, shutting down the daemon" ); + WOLF_LOG( log_NOTICE, "Got termination signal, shutting down the daemon" ); break; case SIGUSR1: @@ -135,13 +135,13 @@ int main( int argc, char *argv[] ) { break; default: - LOG( log_ERR, "Unexpected signal '%s' (%s, %d)", + WOLF_LOG( log_ERR, "Unexpected signal '%s' (%s, %d)", wolf_signal_get_long_name( sig ), wolf_signal_get_short_name( sig ), sig ); } } - LOG( log_NOTICE, "Stopped %s daemon", CMDLINE_PARSER_PACKAGE ); + WOLF_LOG( log_NOTICE, "Stopped %s daemon", CMDLINE_PARSER_PACKAGE ); if( !args_info.foreground_given ) { cmdline_parser_free( &args_info ); |