Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logging: sys_t/catalog: fix unaligned access #60604

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions subsys/logging/log_output_syst.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,11 @@ static int mipi_catalog_formatter(cbprintf_cb out, void *ctx,
}

if (arg_sz == sizeof(mipi_syst_u64)) {
*((mipi_syst_u64 *)argp) =
(mipi_syst_u64)MIPI_SYST_HTOLE64(val.v64);
val.v64 = MIPI_SYST_HTOLE64(val.v64);
memcpy(argp, &val.v64, sizeof(val.v64));
} else {
*((mipi_syst_u32 *)argp) =
(mipi_syst_u32)MIPI_SYST_HTOLE32(val.v32);
val.v32 = MIPI_SYST_HTOLE32(val.v32);
memcpy(argp, &val.v32, sizeof(val.v32));
}
argp += arg_sz;
}
Expand Down
Loading