Tidy up the logger output
This commit is contained in:
parent
f219f686f6
commit
47340a3c2e
3 changed files with 3 additions and 3 deletions
|
@ -7,6 +7,6 @@ import (
|
||||||
|
|
||||||
// Formats our log output to \n%s\n\n for readability
|
// Formats our log output to \n%s\n\n for readability
|
||||||
func Printf(content string, v ...any) {
|
func Printf(content string, v ...any) {
|
||||||
content = fmt.Sprintf("\n%s\n\n", content)
|
content = fmt.Sprintf("\n%s\n", content)
|
||||||
log.Printf(content, v...)
|
log.Printf(content, v...)
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ import (
|
||||||
func GetIOMMU(args ...string) []string {
|
func GetIOMMU(args ...string) []string {
|
||||||
var stdout, stderr bytes.Buffer
|
var stdout, stderr bytes.Buffer
|
||||||
// Write to logger
|
// Write to logger
|
||||||
logger.Printf("Executing: utils/ls-iommu %s", strings.Join(args, " "))
|
logger.Printf("Executing: utils/ls-iommu %s\n", strings.Join(args, " "))
|
||||||
|
|
||||||
// Configure the ls-iommu command
|
// Configure the ls-iommu command
|
||||||
cmd := exec.Command("utils/ls-iommu", args...)
|
cmd := exec.Command("utils/ls-iommu", args...)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
func getIOMMU(args ...string) []string {
|
func getIOMMU(args ...string) []string {
|
||||||
var stdout, stderr bytes.Buffer
|
var stdout, stderr bytes.Buffer
|
||||||
// Write to logger
|
// Write to logger
|
||||||
logger.Printf("Executing: utils/ls-iommu %s", strings.Join(args, " "))
|
logger.Printf("Executing: utils/ls-iommu %s\n", strings.Join(args, " "))
|
||||||
|
|
||||||
// Configure the ls-iommu command
|
// Configure the ls-iommu command
|
||||||
cmd := exec.Command("utils/ls-iommu", args...)
|
cmd := exec.Command("utils/ls-iommu", args...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue