fix another possible passing of unsigned int into a function requiring a signed int, CID 10665
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -117,9 +117,13 @@ void usb_beceem_trace(bool force, const char* func, const char *fmt, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
mutex_lock(&gLogLock);
|
mutex_lock(&gLogLock);
|
||||||
int fd = open(gLogFilePath, O_WRONLY | O_APPEND);
|
int filehandle = open(gLogFilePath, O_WRONLY | O_APPEND);
|
||||||
write(fd, buffer, strlen(buffer));
|
|
||||||
close(fd);
|
if (filehandle >= 0) {
|
||||||
|
write(filehandle, buffer, strlen(buffer));
|
||||||
|
close(filehandle);
|
||||||
|
}
|
||||||
|
|
||||||
mutex_unlock(&gLogLock);
|
mutex_unlock(&gLogLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user