Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2008-12-13 19:21:59 +0300
committerOctaneSnail <os@v12pwr.com>2008-12-13 22:53:53 +0300
commit75ed77126304e38d098fc4f5845e552a48999734 (patch)
treeccf1e9c7cceb2e7a8bf0033bd46b6ab9ddcdca4a /RFS.cpp
parent56593e8a2543de45fd97aed91aa73a29b49a418b (diff)
Add convenience function for logging headers.
Diffstat (limited to 'RFS.cpp')
-rw-r--r--RFS.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/RFS.cpp b/RFS.cpp
index d6a1c60..75f67af 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -296,15 +296,14 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i
if (ReadHeader (hFile, &rh))
return FALSE;
+ LOG_HEADER (&rh);
+
if (rh.ch.type != HEADER_TYPE_ARCHIVE)
{
ErrorMsg (0, L"Unexpected RAR header type.");
return FALSE;
}
- DbgLog ((LOG_TRACE, 2, L"Header CRC %04x TYPE %02x FLAGS %04x SIZE %04x",
- rh.ch.crc, rh.ch.type, rh.ch.flags, rh.ch.size));
-
if (rh.ch.flags & MHD_PASSWORD)
{
ErrorMsg (0, L"Encrypted RAR volumes are not supported.");
@@ -387,8 +386,7 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i
return FALSE;
}
- DbgLog ((LOG_TRACE, 2, L"Header CRC %04x TYPE %02x FLAGS %04x SIZE %04x",
- rh.ch.crc, rh.ch.type, rh.ch.flags, rh.ch.size));
+ LOG_HEADER (&rh);
if (rh.ch.type == HEADER_TYPE_END)
{