Skip to content

core/msg: re-enable IRQs before printing for highlevel_stdio #27244

core/msg: re-enable IRQs before printing for highlevel_stdio

core/msg: re-enable IRQs before printing for highlevel_stdio #27244

Triggered via pull request November 27, 2024 15:17
Status Success
Total duration 2m 47s
Artifacts

static-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
static-tests: core/msg.c#L524
line is longer than 100 characters
static-tests: core/msg.c#L526
line is longer than 100 characters
static-tests: core/msg.c#L529
Uncrustify proposes the following patch: --- a/core/msg.c +++ b/core/msg.c @@ -518,12 +518,14 @@ void msg_queue_print(void) static msg_t msg_array[CONFIG_MSG_QUEUE_PRINT_MAX]; if (msg_idx_last > msg_idx_first || msg_count_to_end > msg_count_print) { - memcpy(msg_array, &thread->msg_array[msg_idx_first], sizeof(msg_t)*(msg_count_print)); + memcpy(msg_array, &thread->msg_array[msg_idx_first], sizeof(msg_t) * (msg_count_print)); } else { - unsigned msg_count_from_start = MIN((unsigned)(msg_idx_last + 1), msg_count_print-msg_count_to_end); - memcpy(&msg_array[0], &thread->msg_array[msg_idx_first], sizeof(msg_t)*msg_count_to_end); - memcpy(&msg_array[msg_count_to_end], &thread->msg_array[0], sizeof(msg_t)*msg_count_from_start); + unsigned msg_count_from_start = MIN((unsigned)(msg_idx_last + 1), + msg_count_print - msg_count_to_end); + memcpy(&msg_array[0], &thread->msg_array[msg_idx_first], sizeof(msg_t) * msg_count_to_end); + memcpy(&msg_array[msg_count_to_end], &thread->msg_array[0], + sizeof(msg_t) * msg_count_from_start); } irq_restore(state);