Skip to content

Commit

Permalink
Added missing 0x prefix to hex number in print example
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianSchmid committed Jul 13, 2019
1 parent 7369ce2 commit 89cd203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/print_messages_ids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ fn read(arguments: CommandLineArguments) -> Result<(),Error> {
if let Some(message_id) = dlt_slice.message_id() {
if let Some(extended_header) = dlt_slice.extended_header() {
if let Some(message_type) = extended_header.message_type() {
println!("non verbose message {:x} (type: {:?}, application_id: {:x}, context_id: {})",
println!("non verbose message 0x{:x} (type: {:?}, application_id: 0x{:x}, context_id: {})",
message_id, message_type, extended_header.application_id, extended_header.context_id);
} else {
println!("non verbose message {:x} (application_id: {:x}, context_id: {})",
println!("non verbose message 0x{:x} (application_id: 0x{:x}, context_id: {})",
message_id, extended_header.application_id, extended_header.context_id);
}
} else {
println!("non verbose message {:x}", message_id);
println!("non verbose message 0x{:x}", message_id);
}
println!(" with payload {:?}", dlt_slice.non_verbose_payload());
} else {
Expand Down

0 comments on commit 89cd203

Please sign in to comment.