]> rtime.felk.cvut.cz Git - orte.git/commitdiff
ORTE: fix compiler warning
authorMartin Vajnar <martin.vajnar@gmail.com>
Thu, 12 Sep 2013 19:18:12 +0000 (21:18 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Mon, 23 Sep 2013 09:06:29 +0000 (11:06 +0200)
This allows compilation with Android NDK r9
(treats some warnings as errors).

orte/liborte/debug.c

index 9cec2dcc631e3abaa2774ba9fc562fc4833b265b..86d1426c090b5742f636b778db76960c89c8d2ce 100644 (file)
@@ -91,7 +91,7 @@ void
 db_print_output(const char *format) {
 #ifndef CONFIG_ORTE_RT
   if (debug_log == NULL) return;
-  fprintf(debug_log, format);
+  fprintf(debug_log, "%s", format);
   fflush(debug_log);
 #else
   rtl_printf(format);