diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-17 16:06:50 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-17 16:06:50 +0100 |
commit | 1550f83f7cab1ee26a4019d16689f018e5de5a50 (patch) | |
tree | 3896165a4becf13a7a3731c8790bf0020b107141 /src/log | |
parent | 7c1d830045ea25ad3537e68b72900600d02fd135 (diff) | |
download | wolfbones-1550f83f7cab1ee26a4019d16689f018e5de5a50.tar.gz wolfbones-1550f83f7cab1ee26a4019d16689f018e5de5a50.tar.bz2 |
started to add _ to log.c
Diffstat (limited to 'src/log')
-rw-r--r-- | src/log/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/log/log.c b/src/log/log.c index 0412e75..ea18e8c 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -24,6 +24,7 @@ #include "port/time.h" /* for localtime_r, strftime, time * time_t, struct tm */ #include "port/unused.h" /* for WOLF_UNUSED */ +#include "port/gettext.h" /* for i18n */ #include <stdarg.h> /* for variable arguments */ #include <errno.h> /* for errno */ @@ -604,8 +605,8 @@ void wolf_log( wolf_log_level_t level, int category_id, int message_id, const ch if( localtime_r( &t, &local_time ) == NULL ) { char errmsg[512]; strerror_r( errno, errmsg, 512 ); - fprintf( stderr, "%s: localtime_r failed with errno %d (%s)!!\n", - wolf_log_level_to_str( WOLF_LOG_ALERT ), errno, errmsg ); + fprintf( stderr, _( "%s: localtime_r failed: %s\n" ), + wolf_log_level_to_str( WOLF_LOG_ALERT ), errmsg ); abort( ); } |