Permalink
Browse files

[loadfile] improve log message

  • Loading branch information...
1 parent 07ba551 commit fa81ea5f7c8fdb8426cba54fec94c49a753a0ac2 Jonathan Marshall committed with May 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/utils/FileUtils.cpp
View
@@ -184,7 +184,7 @@ unsigned int CFileUtils::LoadFile(const std::string &filename, void* &outputBuff
tempinputBuff = (unsigned char *)realloc(inputBuff, inputBuffSize);
if (!tempinputBuff)
{
- CLog::Log(LOGERROR, "%s unable to allocate buffer of size %u", __FUNCTION__, inputBuffSize);
+ CLog::Log(LOGERROR, "%s unable to (re)allocate buffer of size %u for file \"%s\"", __FUNCTION__, inputBuffSize, filename.c_str());
free(inputBuff);
file.Close();
return 0;

0 comments on commit fa81ea5

Please sign in to comment.