From 5c81b4a1ff2d6b63082cd4a9f626b14d9a680c24 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 4 Jun 2009 00:44:58 +0000 Subject: [PATCH] - client: Fix missing argument in printf statements svn path=/trunk/boinc/; revision=18288 --- checkin_notes | 6 ++++++ lib/coproc.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 5b79474d0a..9105f04c3c 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5036,3 +5036,9 @@ Charlie 3 June 2009 mac_installer/ make_GridRepublic.sh + +Charlie 3 June 2009 + - client: Fix missing argument in printf statements. + + lib/ + coproc.cpp,h diff --git a/lib/coproc.cpp b/lib/coproc.cpp index 013f4aaab5..f4144ee5b3 100644 --- a/lib/coproc.cpp +++ b/lib/coproc.cpp @@ -292,9 +292,9 @@ void COPROC_CUDA::get( if (use_all || !cuda_compare(gpus[i], best, true)) { best.device_nums[best.count] = gpus[i].device_num; best.count++; - sprintf(buf2, "NVIDIA GPU %d: %s", buf); + sprintf(buf2, "NVIDIA GPU %d: %s", best.count, buf); } else { - sprintf(buf2, "NVIDIA GPU %d (not used): %s", buf); + sprintf(buf2, "NVIDIA GPU %d (not used): %s", best.count, buf); } strings.push_back(string(buf2)); }