Commit df0da6fab82bc194d2caf89c99208a0d7f69b693

kanoi 2014-04-16T22:43:30

Merge pull request #578 from maqifrnswa/master -Werror=format-security error on driver-bitmain.c

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitmain.c b/driver-bitmain.c
index 6ea9930..98d5b78 100644
--- a/driver-bitmain.c
+++ b/driver-bitmain.c
@@ -796,7 +796,7 @@ static void bitmain_update_temps(struct cgpu_info *bitmain, struct bitmain_info 
 	}
 	sprintf(tmp, ", TempMAX: %dC", info->temp_max);
 	strcat(msg, tmp);
-	applog(LOG_INFO, msg);
+	applog(LOG_INFO, "%s", msg);
 	info->temp_history_index++;
 	info->temp_sum += bitmain->temp;
 	applog(LOG_DEBUG, "%s%d: temp_index: %d, temp_count: %d, temp_max: %d",