diff --git a/cir/src/bin/commands/config.rs b/cir/src/bin/commands/config.rs index b9240db..243176a 100644 --- a/cir/src/bin/commands/config.rs +++ b/cir/src/bin/commands/config.rs @@ -504,6 +504,12 @@ fn load_keymap( } } + log::debug!( + "attaching bpf program for {} to {}", + keymap_filename.display(), + chdev + ); + if let Err(e) = chdev.attach_bpf(&bpf) { eprintln!("error: {}: attach bpf: {e}", keymap_filename.display()); std::process::exit(1); @@ -600,6 +606,8 @@ fn load_lircd( std::process::exit(1); } + log::debug!("attaching bpf program for {} to {}", remote.name, chdev); + for code in remote.codes { let mut name = code.name.to_uppercase(); if !name.starts_with("KEY_") { diff --git a/irp/src/build_bpf.rs b/irp/src/build_bpf.rs index fc4ac03..b1568c8 100644 --- a/irp/src/build_bpf.rs +++ b/irp/src/build_bpf.rs @@ -61,6 +61,8 @@ impl DFA { log::info!("saving llvm ir as {filename}"); builder.module.print_to_file(&filename).unwrap(); + } else { + log::debug!("generated llvm ir for {}", options.name); } builder.module.verify().unwrap(); @@ -115,6 +117,8 @@ impl DFA { }; file.write_all(slice).unwrap(); + } else { + log::debug!("generated object file for {}", options.name); } let mut vars = vec![String::new(); builder.vars.len()]; diff --git a/irp/src/build_dfa.rs b/irp/src/build_dfa.rs index 3865c0f..93f3ba8 100644 --- a/irp/src/build_dfa.rs +++ b/irp/src/build_dfa.rs @@ -3,7 +3,7 @@ use super::{ expression::clone_filter, Expression, Irp, Options, }; -use log::info; +use log::{debug, info}; use std::{ collections::{HashMap, HashSet}, hash::Hash, @@ -55,12 +55,16 @@ impl NFA { let filename = options.filename("_nfa.dot"); info!("saving NFA as {filename}"); self.dotgraphviz(&filename); + } else { + debug!("generated NFA for {}", options.name); } if options.dfa { let filename = options.filename("_dfa.dot"); info!("saving DFA as {filename}"); dfa.dotgraphviz(&filename); + } else { + debug!("generated DFA for {}", options.name); } dfa