From 3bac4492865ad3bd4c293e9d751163e090634678 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Wed, 27 Dec 2023 20:42:39 +0800 Subject: [PATCH] assert: fix flags type, should be irqstate_t Signed-off-by: Bowen Wang --- sched/misc/assert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/misc/assert.c b/sched/misc/assert.c index b63f664c28..1f0fa0bdd5 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -514,8 +514,8 @@ void _assert(FAR const char *filename, int linenum, #endif struct panic_notifier_s notifier_data; struct utsname name; + irqstate_t flags; bool fatal = true; - int flags; #if CONFIG_TASK_NAME_SIZE > 0 if (rtcb->group && !(rtcb->flags & TCB_FLAG_TTYPE_KERNEL))