mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
hv: rename the ACRN_DBG_XXX
Refine this MACRO 'ACRN_DBG_XXX' to 'DBG_LEVEL_XXX' Tracked-On: #4348 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <logmsg.h>
|
||||
#include <vboot.h>
|
||||
|
||||
#define ACRN_DBG_PARSE 6
|
||||
#define DBG_LEVEL_PARSE 6
|
||||
|
||||
int32_t parse_hv_cmdline(void)
|
||||
{
|
||||
@@ -25,15 +25,15 @@ int32_t parse_hv_cmdline(void)
|
||||
}
|
||||
|
||||
mbi = (struct multiboot_info *)(hpa2hva_early((uint64_t)boot_regs[1]));
|
||||
dev_dbg(ACRN_DBG_PARSE, "Multiboot detected, flag=0x%x", mbi->mi_flags);
|
||||
dev_dbg(DBG_LEVEL_PARSE, "Multiboot detected, flag=0x%x", mbi->mi_flags);
|
||||
|
||||
if ((mbi->mi_flags & MULTIBOOT_INFO_HAS_CMDLINE) == 0U) {
|
||||
dev_dbg(ACRN_DBG_PARSE, "no hv cmdline!");
|
||||
dev_dbg(DBG_LEVEL_PARSE, "no hv cmdline!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
start = (char *)hpa2hva_early((uint64_t)mbi->mi_cmdline);
|
||||
dev_dbg(ACRN_DBG_PARSE, "hv cmdline: %s", start);
|
||||
dev_dbg(DBG_LEVEL_PARSE, "hv cmdline: %s", start);
|
||||
|
||||
while ((start != NULL) && ((*start) != '\0')) {
|
||||
while ((*start) == ' ')
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#include <deprivilege_boot.h>
|
||||
#include <vboot_info.h>
|
||||
|
||||
#define ACRN_DBG_BOOT 6U
|
||||
#define DBG_LEVEL_BOOT 6U
|
||||
|
||||
#define MAX_BOOT_PARAMS_LEN 64U
|
||||
#define INVALID_MOD_IDX 0xFFFFU
|
||||
@@ -135,7 +135,7 @@ static int32_t init_vm_kernel_info(struct acrn_vm *vm, const struct multiboot_mo
|
||||
{
|
||||
struct acrn_vm_config *vm_config = get_vm_config(vm->vm_id);
|
||||
|
||||
dev_dbg(ACRN_DBG_BOOT, "kernel mod start=0x%x, end=0x%x",
|
||||
dev_dbg(DBG_LEVEL_BOOT, "kernel mod start=0x%x, end=0x%x",
|
||||
mod->mm_mod_start, mod->mm_mod_end);
|
||||
|
||||
vm->sw.kernel_type = vm_config->os_config.kernel_type;
|
||||
@@ -217,7 +217,7 @@ static int32_t init_vm_sw_load(struct acrn_vm *vm, const struct multiboot_info *
|
||||
uint32_t mod_idx;
|
||||
int32_t ret = -EINVAL;
|
||||
|
||||
dev_dbg(ACRN_DBG_BOOT, "mod counts=%d\n", mbi->mi_mods_count);
|
||||
dev_dbg(DBG_LEVEL_BOOT, "mod counts=%d\n", mbi->mi_mods_count);
|
||||
|
||||
if (mods != NULL) {
|
||||
mod_idx = get_mod_idx_by_tag(mods, mbi->mi_mods_count, vm_config->os_config.kernel_mod_tag);
|
||||
@@ -255,7 +255,7 @@ static int32_t init_general_vm_boot_info(struct acrn_vm *vm)
|
||||
|
||||
if (mbi != NULL) {
|
||||
stac();
|
||||
dev_dbg(ACRN_DBG_BOOT, "Multiboot detected, flag=0x%x", mbi->mi_flags);
|
||||
dev_dbg(DBG_LEVEL_BOOT, "Multiboot detected, flag=0x%x", mbi->mi_flags);
|
||||
if ((mbi->mi_flags & MULTIBOOT_INFO_HAS_MODS) == 0U) {
|
||||
panic("no multiboot module info found");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user