diff options
Diffstat (limited to 'netwerk/cache/nsCache.cpp')
-rw-r--r-- | netwerk/cache/nsCache.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/netwerk/cache/nsCache.cpp b/netwerk/cache/nsCache.cpp index 7f5d6a0716..b3ecfeae26 100644 --- a/netwerk/cache/nsCache.cpp +++ b/netwerk/cache/nsCache.cpp @@ -20,11 +20,19 @@ void CacheLogPrintPath(mozilla::LogLevel level, const char * format, nsIFile * item) { nsAutoCString path; +#ifdef XP_WIN + nsresult rv = item->GetPersistentDescriptor(path); +#else nsresult rv = item->GetNativePath(path); +#endif if (NS_SUCCEEDED(rv)) { MOZ_LOG(gCacheLog, level, (format, path.get())); } else { +#ifdef XP_WIN + MOZ_LOG(gCacheLog, level, ("GetPersistentDescriptor failed: %x", rv)); +#else MOZ_LOG(gCacheLog, level, ("GetNativePath failed: %x", rv)); +#endif } } |