add replace prints by logs
This commit is contained in:
parent
0e2bb5fe2d
commit
4b4ef6032d
4 changed files with 21 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use log::warn;
|
||||
use log::{info, warn};
|
||||
use std::collections::HashMap;
|
||||
use std::io::{Read, Seek, SeekFrom};
|
||||
|
||||
|
|
@ -275,8 +275,8 @@ impl<T: Read + Seek> ZipFileReader<T> {
|
|||
let mut lst_offset = 0;
|
||||
for file in files.iter() {
|
||||
if file.get_offset_local_header() != lst_offset {
|
||||
println!(
|
||||
"Hole before {} between 0x{:x} and 0x{:x}",
|
||||
info!(
|
||||
"Hole in zip before {} between 0x{:x} and 0x{:x}",
|
||||
file.get_name(),
|
||||
lst_offset,
|
||||
file.get_offset_local_header()
|
||||
|
|
@ -288,8 +288,8 @@ impl<T: Read + Seek> ZipFileReader<T> {
|
|||
if let Some(apk_sign_block) = &self.apk_sign_block {
|
||||
let apk_sb_off = self.get_cd_offset() - apk_sign_block.size() as u64;
|
||||
if apk_sb_off != lst_offset {
|
||||
println!(
|
||||
"Hole before apk signing block, between 0x{:x} and 0x{:x}",
|
||||
info!(
|
||||
"Hole in zip before apk signing block, between 0x{:x} and 0x{:x}",
|
||||
lst_offset, apk_sb_off
|
||||
);
|
||||
}
|
||||
|
|
@ -297,8 +297,8 @@ impl<T: Read + Seek> ZipFileReader<T> {
|
|||
lst_offset = self.get_cd_offset();
|
||||
}
|
||||
if self.get_cd_offset() != lst_offset {
|
||||
println!(
|
||||
"Hole before central directory between 0x{:x} and 0x{:x}",
|
||||
info!(
|
||||
"Hole in zip before central directory between 0x{:x} and 0x{:x}",
|
||||
lst_offset,
|
||||
self.get_cd_offset()
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue