Skip to content

Commit

Permalink
Remove whitespace padding
Browse files Browse the repository at this point in the history
Signed-off-by: Pradyumn Rahar <[email protected]>
  • Loading branch information
Hannibal404 authored and brenns10 committed Nov 7, 2023
1 parent b190d6c commit 4a654a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drgn_tools/cpuinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def x86_get_cpu_info(prog: Program) -> Dict[str, Any]:
"Failed to load CPU info: no cpuinfo struct found (tried 'cpu_data' and 'boot_cpu_data')"
)

cpu_vendor = cpuinfo_struct.x86_vendor_id.string_().decode("utf-8")
model_name = cpuinfo_struct.x86_model_id.string_().decode("utf-8")
cpu_vendor = cpuinfo_struct.x86_vendor_id.string_().decode("utf-8").strip()
model_name = cpuinfo_struct.x86_model_id.string_().decode("utf-8").strip()
cpu_family = int(cpuinfo_struct.x86)
cpus_numa0 = "0-" + str(cpus - 1)
microcode = hex(cpuinfo_struct.microcode)
Expand Down

0 comments on commit 4a654a0

Please sign in to comment.