From 32253c3e30ce24b5a91c14d5ff2e57826d1d4ee3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Wed, 28 Mar 2018 18:01:14 +0200 Subject: [PATCH] cppcheck: printf format string [sched/target_batch.cpp:182]: (warning) printf format string requires 1 parameter but 2 are given. --- sched/target_batch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/target_batch.cpp b/sched/target_batch.cpp index 03392e1534..a383b3f382 100644 --- a/sched/target_batch.cpp +++ b/sched/target_batch.cpp @@ -179,7 +179,7 @@ LIMIT %d", int num_assigned=0; while ((row = mysql_fetch_row(rp))){ workunit.db_parse(row); - printf ("Assigning WU %d to user \n", workunit.id, DEDICATED_USER_ID); + printf ("Assigning WU %d to user %ld\n", workunit.id, DEDICATED_USER_ID); restrict_wu_to_user (workunit, DEDICATED_USER_ID);