Skip to content

Commit

Permalink
decoder: Rename mod logger to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Feb 12, 2021
1 parent 41e6d43 commit e15edf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion decoder/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ include!(concat!(env!("OUT_DIR"), "/version.rs"));

pub mod decoder;
pub mod elf2table;
pub mod logger;
pub mod log;
File renamed without changes.
6 changes: 3 additions & 3 deletions print/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ fn main() -> anyhow::Result<()> {
}

let verbose = false;
defmt_decoder::logger::init_logger(verbose, |metadata| {
defmt_decoder::log::init_logger(verbose, |metadata| {
// We display *all* defmt frames, but nothing else.
defmt_decoder::logger::is_defmt_frame(metadata)
defmt_decoder::log::is_defmt_frame(metadata)
});

let bytes = fs::read(&opts.elf.unwrap())?;
Expand Down Expand Up @@ -82,7 +82,7 @@ fn main() -> anyhow::Result<()> {
}

// Forward the defmt frame to our logger.
defmt_decoder::logger::log_defmt(
defmt_decoder::log::log_defmt(
&frame,
file.as_deref(),
line,
Expand Down

0 comments on commit e15edf7

Please sign in to comment.