From 40b747bae6a775cb3cf8db935e62a1db0bf78b05 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 7 Oct 2012 10:00:02 +1100 Subject: [PATCH] Put scrypt warning on separate line to avoid 0 being shown on windows as bufsize. --- miner.h | 2 +- ocl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/miner.h b/miner.h index 169c9ee1..b2715d44 100644 --- a/miner.h +++ b/miner.h @@ -378,7 +378,7 @@ struct cgpu_info { #ifdef USE_SCRYPT int opt_lg, lookup_gap; - int opt_tc, thread_concurrency; + size_t opt_tc, thread_concurrency; int shaders; #endif struct timeval tv_gpustart; diff --git a/ocl.c b/ocl.c index 450a2d61..723ca30d 100644 --- a/ocl.c +++ b/ocl.c @@ -810,8 +810,8 @@ built: /* Use the max alloc value which has been rounded to a power of * 2 greater >= required amount earlier */ if (bufsize > cgpu->max_alloc) { - applog(LOG_WARNING, "Maximum buffer memory device %d supports says %u, your scrypt settings come to %u", - gpu, cgpu->max_alloc, bufsize); + applog(LOG_WARNING, "Maximum buffer memory device %d supports says %u", gpu, cgpu->max_alloc); + applog(LOG_WARNING, "Your scrypt settings come to %u", bufsize); } else bufsize = cgpu->max_alloc; applog(LOG_DEBUG, "Creating scrypt buffer sized %d", bufsize);