Skip to content

Commit

Permalink
style: Format address
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Nov 9, 2023
1 parent c3088cb commit ac240cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub unsafe extern "C" fn chipInit() {
}

pub unsafe fn on_i2c_connect(user_ctx: *const c_void, address: u32, read: bool) -> bool {
let msg: String = format!("on_i2c_connect: address: {}, read: {}", address, read);
let msg: String = format!("on_i2c_connect: address: {:#02x}, read: {}", address, read);
debugPrint(CString::new(msg).unwrap().into_raw());
let chip: &mut Chip = &mut CHIP_VEC[user_ctx as usize];
if read {
Expand Down

0 comments on commit ac240cc

Please sign in to comment.