mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fixup tag return API
returns a [u8;4] instead of a u32
This commit is contained in:
parent
03ea3c9d0c
commit
9c9c6f67a7
2 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ pub fn boot_or_die() -> ! {
|
|||
Ok((k, tag)) => crate::println!(
|
||||
"**should be unreachable** Booted with key {}({})",
|
||||
k,
|
||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
||||
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||
),
|
||||
Err(e) => crate::println!("Image did not validate: {:?}", e),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
|||
Ok((k, tag)) => println!(
|
||||
"*** Kernel signature check by key @ {}({}) OK ***",
|
||||
k,
|
||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
||||
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||
),
|
||||
Err(e) => {
|
||||
println!("Kernel failed signature check. Dying: {:?}", e);
|
||||
|
|
@ -293,7 +293,7 @@ pub unsafe extern "C" fn rust_entry(signed_buffer: *const usize, signature: u32)
|
|||
println!(
|
||||
"*** Detached app signature check by key @ {}({}) OK ***",
|
||||
k,
|
||||
core::str::from_utf8(&tag.to_le_bytes()).unwrap_or("invalid tag")
|
||||
core::str::from_utf8(&tag).unwrap_or("invalid tag")
|
||||
);
|
||||
true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue