aboutsummaryrefslogtreecommitdiff
path: root/multimedia/xbmc-pvr/files/patch-xbmc-filesystem-CacheStrategy.cpp
blob: b127633370614f121eda6af921ba15f466b7921f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- xbmc/filesystem/CacheStrategy.cpp.orig
+++ xbmc/filesystem/CacheStrategy.cpp
@@ -93,7 +93,8 @@
 
   if(m_hCacheFileWrite == INVALID_HANDLE_VALUE)
   {
-    CLog::Log(LOGERROR, "%s - failed to create file %s with error code %d", __FUNCTION__, fileName.c_str(), GetLastError());
+    CLog::Log(LOGERROR, "%s - failed to create file %s with error code %d",
+      __FUNCTION__, fileName.c_str(), (int)GetLastError());
     Close();
     return CACHE_RC_ERROR;
   }
@@ -107,7 +108,8 @@
 
   if(m_hCacheFileRead == INVALID_HANDLE_VALUE)
   {
-    CLog::Log(LOGERROR, "%s - failed to open file %s with error code %d", __FUNCTION__, fileName.c_str(), GetLastError());
+    CLog::Log(LOGERROR, "%s - failed to open file %s with error code %d",
+      __FUNCTION__, fileName.c_str(), (int)GetLastError());
     Close();
     return CACHE_RC_ERROR;
   }
@@ -140,8 +142,8 @@
   DWORD iWritten=0;
   if (!WriteFile(m_hCacheFileWrite, pBuffer, iSize, &iWritten, NULL))
   {
-    CLog::Log(LOGERROR, "%s - failed to write to file. err: %u",
-                          __FUNCTION__, GetLastError());
+    CLog::Log(LOGERROR, "%s - failed to write to file. err: %d",
+                          __FUNCTION__, (int)GetLastError());
     return CACHE_RC_ERROR;
   }