From 7c848719de778929258f1f9e2778e56f267c90ed Mon Sep 17 00:00:00 2001 From: Ravi Prakash Date: Wed, 30 Nov 2016 10:47:41 -0800 Subject: [PATCH] MAPREDUCE-6810. Fix hadoop-mapreduce-client-nativetask compilation with GCC-6.2.1. Contributed by Ravi Prakash. --- .../src/main/native/src/lib/Log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/Log.h b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/Log.h index a0c17f359a18f..a84b0550d7621 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/Log.h +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/Log.h @@ -32,7 +32,7 @@ extern FILE * LOG_DEVICE; #define LOG(_fmt_, args...) if (LOG_DEVICE) { \ time_t log_timer; struct tm log_tm; \ time(&log_timer); localtime_r(&log_timer, &log_tm); \ - fprintf(LOG_DEVICE, "%02d/%02d/%02d %02d:%02d:%02d INFO "_fmt_"\n", \ + fprintf(LOG_DEVICE, "%02d/%02d/%02d %02d:%02d:%02d INFO " _fmt_ "\n", \ log_tm.tm_year%100, log_tm.tm_mon+1, log_tm.tm_mday, \ log_tm.tm_hour, log_tm.tm_min, log_tm.tm_sec, \ ##args);}