Browse Source

bitforce & icarus: Log detection failures at debug log level, so we don't confuse users who have different devices (which is why these drivers are failing detection!)

Luke Dashjr 13 years ago
parent
commit
ccc2aa2064
2 changed files with 5 additions and 5 deletions
  1. 3 3
      driver-bitforce.c
  2. 2 2
      driver-icarus.c

+ 3 - 3
driver-bitforce.c

@@ -59,18 +59,18 @@ static bool bitforce_detect_one(const char *devpath)
 
 	int fdDev = BFopen(devpath);
 	if (unlikely(fdDev == -1)) {
-		applog(LOG_ERR, "BFL: Failed to open %s", devpath);
+		applog(LOG_DEBUG, "BFL: Failed to open %s", devpath);
 		return false;
 	}
 	BFwrite(fdDev, "ZGX", 3);
 	BFgets(pdevbuf, sizeof(pdevbuf), fdDev);
 	if (unlikely(!pdevbuf[0])) {
-		applog(LOG_ERR, "BFL: Error reading (ZGX)");
+		applog(LOG_DEBUG, "BFL: Error reading (ZGX)");
 		return 0;
 	}
 	BFclose(fdDev);
 	if (unlikely(!strstr(pdevbuf, "SHA256"))) {
-		applog(LOG_ERR, "BFL: Didn't recognise BitForce on %s", devpath);
+		applog(LOG_DEBUG, "BFL: Didn't recognise BitForce on %s", devpath);
 		return false;
 	}
 

+ 2 - 2
driver-icarus.c

@@ -383,7 +383,7 @@ static bool icarus_detect_one(const char *devpath)
 
 	fd = icarus_open2(devpath, true);
 	if (unlikely(fd == -1)) {
-		applog(LOG_ERR, "Icarus Detect: Failed to open %s", devpath);
+		applog(LOG_DEBUG, "Icarus Detect: Failed to open %s", devpath);
 		return false;
 	}
 
@@ -399,7 +399,7 @@ static bool icarus_detect_one(const char *devpath)
 	nonce_hex = bin2hex(nonce_bin, sizeof(nonce_bin));
 	if (nonce_hex) {
 		if (strncmp(nonce_hex, golden_nonce, 8)) {
-			applog(LOG_ERR, 
+			applog(LOG_DEBUG,
 				"Icarus Detect: "
 				"Test failed at %s: get %s, should: %s",
 				devpath, nonce_hex, golden_nonce);