mirror of
https://github.com/HikariKnight/quickpassthrough
synced 2025-06-28 05:58:00 +02:00
Add logger debug output
This commit is contained in:
parent
27a52cda1f
commit
639d056abe
7 changed files with 71 additions and 18 deletions
|
@ -3,6 +3,7 @@ package configs
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/HikariKnight/quickpassthrough/internal/logger"
|
||||
"github.com/HikariKnight/quickpassthrough/pkg/fileio"
|
||||
)
|
||||
|
||||
|
@ -10,6 +11,9 @@ func DisableVFIOVideo(i int) {
|
|||
// Get the config
|
||||
config := GetConfig()
|
||||
|
||||
// Write to logger
|
||||
logger.Printf("Adding vfio_pci.disable_vga=%v to %s", i, config.Path.CMDLINE)
|
||||
|
||||
// Add to the kernel arguments that we want to disable VFIO video output on the host
|
||||
fileio.AppendContent(
|
||||
fmt.Sprintf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue