From 30385f8ae3f5439ede1eff2ee1f198b2adcff8f4 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 24 Jan 2025 19:35:43 -0600 Subject: [PATCH] cleanup --- usb.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/usb.go b/usb.go index 35147c4..96cbc68 100644 --- a/usb.go +++ b/usb.go @@ -21,10 +21,8 @@ const kvmGadgetPath = "/sys/kernel/config/usb_gadget/jetkvm" const configC1Path = "/sys/kernel/config/usb_gadget/jetkvm/configs/c.1" func mountConfigFS() error { - logger.Infof("Checking for gadgetPath: %s ...", gadgetPath) _, err := os.Stat(gadgetPath) if os.IsNotExist(err) { - logger.Infof("running mount command...") err = exec.Command("mount", "-t", "configfs", "none", configFSPath).Run() if err != nil { return fmt.Errorf("failed to mount configfs: %w", err) @@ -32,7 +30,6 @@ func mountConfigFS() error { } else { return fmt.Errorf("unable to access usb gadget path: %w", err) } - logger.Infof("Successfully mounted usb gadget at %s", gadgetPath) return nil }