diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 14:13:15 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-24 14:13:15 +0100 |
commit | c97627fdfca3a976ef7f3055339021967ca60f6d (patch) | |
tree | 2d68b08ae19a6f5d0d97bd9a2cd8a70df8486c3d | |
parent | 9f45af85f5332dfdc4542ffa71717791d37a6a93 (diff) | |
download | wolfbones-c97627fdfca3a976ef7f3055339021967ca60f6d.tar.gz wolfbones-c97627fdfca3a976ef7f3055339021967ca60f6d.tar.bz2 |
fixed output in wolf_log_win32
-rw-r--r-- | src/log/log.c | 2 | ||||
-rw-r--r-- | tests/service/testservice.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/log/log.c b/src/log/log.c index cb487a6..ac62c7f 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -815,7 +815,7 @@ void wolf_log_win32_ap( wolf_log_level_t level, int category_id, int message_id, strlcat( new_format, buf, 1024 ); } - strlcat( new_format, "( ", 1024 ); + strlcat( new_format, " (", 1024 ); strlcat( new_format, itoa( last_error, int_buf, 10 ), 1024 ); strlcat( new_format, ")", 1024 ); diff --git a/tests/service/testservice.c b/tests/service/testservice.c index 76b39b2..1bbc261 100644 --- a/tests/service/testservice.c +++ b/tests/service/testservice.c @@ -28,13 +28,10 @@ static void wolf_service_register( void ) { SC_MANAGER_ALL_ACCESS ); if( scm == NULL ) { - DWORD last_error = GetLastError( ); - wolf_log_win32( WOLF_LOG_EMERG, WOLF_CATEGORY_TESTSERVICE, WOLF_MSG_TESTSERVICE_CANT_OPEN_SCM, - _( "Unable to open the service control manager to register srevice '%s'" ), + _( "Unable to open the service control manager to register service '%s'" ), "testservice" ); } - } void __cdecl _tmain( int argc, TCHAR *argv[] ) { |