summaryrefslogtreecommitdiff
path: root/src/log
diff options
context:
space:
mode:
Diffstat (limited to 'src/log')
-rw-r--r--src/log/log.c5
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( );
}