Add status info when reporting read error in cfsocket

This commit is contained in:
bossiel 2015-05-22 01:14:49 +00:00
parent d208a36f4d
commit e993a33182
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ void __CFReadStreamClientCallBack(CFReadStreamRef stream, CFStreamEventType even
// Get the error code
CFErrorRef error = CFReadStreamCopyError(stream);
if (error) {
TSK_DEBUG_INFO("__CFReadStreamClientCallBack --> Error=%lu -> %s, fd=%d", CFErrorGetCode(error), CFStringGetCStringPtr(CFErrorGetDomain(error), kCFStringEncodingUTF8), sock->fd);
TSK_DEBUG_INFO("__CFReadStreamClientCallBack --> Error=%lu -> %s, fd=%d, status=%ld", CFErrorGetCode(error), CFStringGetCStringPtr(CFErrorGetDomain(error), kCFStringEncodingUTF8), sock->fd, CFReadStreamGetStatus(stream));
CFRelease(error);
}