mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-08-29 10:03:50 +00:00
kata-os-logger: correctly match types
Change-Id: I55cd8201cc22135cb3dc9bd91011137569223ae5 GitOrigin-RevId: 34cfbff90f1e3243b9f181259876ea307a1ba0d2
This commit is contained in:
parent
3d0a31f7b4
commit
58862a4803
@ -36,7 +36,7 @@ impl log::Log for KataLogger {
|
|||||||
fn enabled(&self, _metadata: &Metadata) -> bool { true }
|
fn enabled(&self, _metadata: &Metadata) -> bool { true }
|
||||||
|
|
||||||
fn log(&self, record: &Record) {
|
fn log(&self, record: &Record) {
|
||||||
let typed_logger_log: Option<extern "C" fn(level: u8, msg: *const u8)> =
|
let typed_logger_log: Option<extern "C" fn(level: u8, msg: *const cstr_core::c_char)> =
|
||||||
unsafe { core::mem::transmute(logger_log) };
|
unsafe { core::mem::transmute(logger_log) };
|
||||||
if typed_logger_log.is_none() {
|
if typed_logger_log.is_none() {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user