|
@@ -1836,7 +1836,7 @@ bool UploadFSM::getFileContent(FILE* pFile,unsigned char* content,int beginPos,
|
|
|
return false;
|
|
|
}
|
|
|
if(fseek(pFile,beginPos,SEEK_SET)!=0){
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,fseek beginPos =%d is error =%d",beginPos,(int)GetLastError());
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,fseek beginPos =%d is error =%d",beginPos, errno);
|
|
|
return false;
|
|
|
}
|
|
|
unsigned char* pRead = content;//移动的指针
|
|
@@ -1858,7 +1858,7 @@ bool UploadFSM::getFileContent(FILE* pFile,unsigned char* content,int beginPos,
|
|
|
return true;
|
|
|
}else{
|
|
|
//Dbg("getFileContent fail,pRemaind =%d",pRemaind);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,pRemaind =%d, error=%d",pRemaind,(int)GetLastError());
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM).setAPI("getFileContent")("getFileContent fail,pRemaind =%d, error=%d",pRemaind, errno);
|
|
|
return false;
|
|
|
}
|
|
|
}
|