diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 522feb7..ebb945f 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -7,6 +7,6 @@ import ( // Formats our log output to \n%s\n\n for readability 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...) } diff --git a/internal/lsiommu/lsiommu.go b/internal/lsiommu/lsiommu.go index faf5c62..0574f75 100644 --- a/internal/lsiommu/lsiommu.go +++ b/internal/lsiommu/lsiommu.go @@ -17,7 +17,7 @@ import ( func GetIOMMU(args ...string) []string { var stdout, stderr bytes.Buffer // 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 cmd := exec.Command("utils/ls-iommu", args...) diff --git a/internal/utiil_ls-iommu.go b/internal/utiil_ls-iommu.go index 48709ed..47e3f7f 100644 --- a/internal/utiil_ls-iommu.go +++ b/internal/utiil_ls-iommu.go @@ -18,7 +18,7 @@ import ( func getIOMMU(args ...string) []string { var stdout, stderr bytes.Buffer // 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 cmd := exec.Command("utils/ls-iommu", args...)