Commit ae400b4f09d90bfc27ae2da60934ad8ee826cf61

Con Kolivas 2012-06-26T22:38:18

Only show ztex board count if any exist.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-ztex.c b/driver-ztex.c
index e38be74..db22392 100644
--- a/driver-ztex.c
+++ b/driver-ztex.c
@@ -63,7 +63,8 @@ static void ztex_detect(void)
 	struct cgpu_info *ztex;
 
 	cnt = libztex_scanDevices(&ztex_devices);
-	applog(LOG_WARNING, "Found %d ztex board(s)", cnt);
+	if (cnt > 0)
+		applog(LOG_WARNING, "Found %d ztex board%s", cnt, cnt > 1 ? "s" : "");
 
 	for (i = 0; i < cnt; i++) {
 		ztex = calloc(1, sizeof(struct cgpu_info));