mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
HV:treewide:string assigned to const object
In the hypervisor, some strings are assigned to non const object, this violates MISRA C:2012. Update the type of the object as const type since it always points to string. Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
This commit is contained in:
@@ -228,7 +228,7 @@ static void show_host_call_trace(uint64_t rsp, uint64_t rbp, uint16_t pcpu_id)
|
||||
printf("\r\n");
|
||||
}
|
||||
|
||||
void __assert(uint32_t line, const char *file, char *txt)
|
||||
void __assert(uint32_t line, const char *file, const char *txt)
|
||||
{
|
||||
uint16_t pcpu_id = get_cpu_id();
|
||||
uint64_t rsp = cpu_rsp_get();
|
||||
|
Reference in New Issue
Block a user