Skip to content

Commit

Permalink
fix: correctly write to log when a kernel older than 6.2 is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Mar 16, 2024
1 parent cbc49c7 commit 74fa194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/configs/configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func vfio_modules() []string {
kernel_re := regexp.MustCompile(`^(6\.1|6\.0|[1-5]\.)`)
if kernel_re.MatchString(sysinfo.Kernel) {
// Write to the debug log
logger.Printf("Linux kernel version %s detected!\nIncluding vfio_virqfd module\n")
logger.Printf("Linux kernel version %s detected!\nIncluding vfio_virqfd module\n", sysinfo.Kernel)

// Include the vfio_virqfd module
// NOTE: this driver was merged into the vfio module in 6.2
Expand Down

0 comments on commit 74fa194

Please sign in to comment.