mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: replace improper use of panic with ASSERT
Panic should only be used when system booting. Once the system boot done, it could never be used. While ASSERT could be used in some situations, such as, there are some pre-assumption for some code, using ASSERT here for debug. Tracked-On: #861 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@inte.com>
This commit is contained in:
@@ -174,7 +174,7 @@ void run_sched_thread(struct sched_object *obj)
|
||||
obj->thread(obj);
|
||||
}
|
||||
|
||||
panic("Shouldn't go here, invalid thread!");
|
||||
ASSERT(false, "Shouldn't go here, invalid thread!");
|
||||
}
|
||||
|
||||
void switch_to_idle(run_thread_t idle_thread)
|
||||
|
Reference in New Issue
Block a user