From d203469e2f1e8e14aac3b114138a9f702f8eeb49 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sun, 5 Mar 2023 22:05:27 +0100 Subject: [PATCH] fix -i not working --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 1def365..53988a2 100644 --- a/main.go +++ b/main.go @@ -49,6 +49,8 @@ func main() { usbs := iommu.MatchDEVs(groups,`USB controller`) printoutput(usbs) printIOMMUgroup(*iommu_group) + } else if len(*iommu_group) > 0 { + printIOMMUgroup(*iommu_group) } else { // Default behaviour mimicks the bash variant that this is based on out := iommu.GetAllDevices(groups)