client: call some Mac coproc_detect debugging code only if coproc_debug flag is set

svn path=/trunk/boinc/; revision=25411
This commit is contained in:
Charlie Fenton 2012-03-13 01:11:23 +00:00
parent 500334af77
commit 07d30294e0
1 changed files with 4 additions and 6 deletions

View File

@ -1688,12 +1688,10 @@ void COPROCS::get_ati_mem_size_from_opengl() {
if (strcmp((char *)CFDataGetBytePtr(modelName[j]),
ati_opencls[ati_gpu_index].name)
) {
if (log_flags.coproc_debug) {
msg_printf(0, MSG_INFO,
"[coproc] get_ati_mem_size_from_opengl model name mismatch: %s vs %s\n",
ati_opencls[ati_gpu_index].name, (char *)CFDataGetBytePtr(modelName[j])
);
}
msg_printf(0, MSG_INFO,
"[coproc] get_ati_mem_size_from_opengl model name mismatch: %s vs %s\n",
ati_opencls[ati_gpu_index].name, (char *)CFDataGetBytePtr(modelName[j])
);
}
} else {
// Could not get model name from IOKit, so use renderer name