diff --git a/src/extract.rs b/src/extract.rs index 77c7a24..928233a 100644 --- a/src/extract.rs +++ b/src/extract.rs @@ -42,7 +42,7 @@ pub enum ExtractionJobType { PCodeFunc, PCodeBB, LocalVariableXrefs, - GlobalStrings + GlobalStrings, } #[derive(Debug)] @@ -607,8 +607,6 @@ impl FileToBeProcessed { r2p.close(); info!("r2p closed"); - - info!("Writing extracted data to file"); self.write_to_json(&json!(function_decomp)) } else { diff --git a/src/main.rs b/src/main.rs index 6b06102..e3e2384 100644 --- a/src/main.rs +++ b/src/main.rs @@ -943,7 +943,8 @@ fn main() { ) } InstructionMode::PCode => { - let pcode_file_type = match pcode_file_format.as_ref().unwrap().as_str() { + let pcode_file_type = match pcode_file_format.as_ref().unwrap().as_str() + { "pcode-func" => PCodeFileTypes::PCodeJsonFile, "pcode-bb" => PCodeFileTypes::PCodeWithBBFile, _ => unreachable!("Invalid PCode file type"),