mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 22:39:29 +00:00
acrn-config: fix a few formatting issues
scenario_cfg_lib.py: - removed extra white space before ',' pci_dev_c.py: - follow style in other files, added two empty lines - removed extra line at the end of the .c file vm_configurations_c.py - alignment vm_configurations_h.py - alignment Tracked-On: #3602 Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -662,9 +662,9 @@ def cpus_assignment(cpus_per_vm, index):
|
||||
cpu_str = "{{AFFINITY_CPU({0}U)".format(cpus_per_vm[index][0])
|
||||
else:
|
||||
if i == len(cpus_per_vm[index]) - 1:
|
||||
cpu_str = cpu_str + " , AFFINITY_CPU({0}U)}}".format(cpus_per_vm[index][i])
|
||||
cpu_str = cpu_str + ", AFFINITY_CPU({0}U)}}".format(cpus_per_vm[index][i])
|
||||
else:
|
||||
cpu_str = cpu_str + " , AFFINITY_CPU({0}U)".format(cpus_per_vm[index][i])
|
||||
cpu_str = cpu_str + ", AFFINITY_CPU({0}U)".format(cpus_per_vm[index][i])
|
||||
|
||||
vm_cpu_bmp['cpu_map'] = cpu_str
|
||||
vm_cpu_bmp['cpu_num'] = len(cpus_per_vm[index])
|
||||
|
Reference in New Issue
Block a user