mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +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:
@@ -823,7 +823,7 @@ static void cpu_set_logical_id(uint16_t pcpu_id)
|
||||
|
||||
static void print_hv_banner(void)
|
||||
{
|
||||
char *boot_msg = "ACRN Hypervisor\n\r";
|
||||
const char *boot_msg = "ACRN Hypervisor\n\r";
|
||||
|
||||
/* Print the boot message */
|
||||
printf(boot_msg);
|
||||
|
Reference in New Issue
Block a user