Browse Source

Remove applog call from bfwrite to prevent grabbing nested mutexes.

Con Kolivas 13 years ago
parent
commit
0f405c7c18
1 changed files with 2 additions and 3 deletions
  1. 2 3
      driver-bitforce.c

+ 2 - 3
driver-bitforce.c

@@ -41,10 +41,9 @@ static void BFgets(char *buf, size_t bufLen, int fd)
 
 
 static ssize_t BFwrite(int fd, const void *buf, ssize_t bufLen)
 static ssize_t BFwrite(int fd, const void *buf, ssize_t bufLen)
 {
 {
-	if ((bufLen) != write(fd, buf, bufLen)) {
-		applog(LOG_ERR, "BFL: Error writing: %s", buf); 
+	if ((bufLen) != write(fd, buf, bufLen))
 		return 0;
 		return 0;
-	} else
+	else
 		return bufLen;
 		return bufLen;
 }
 }