From edb3e23311b9cd667898e625b07f5dbeb43e30e3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 16 Aug 2025 16:23:08 -0500 Subject: fixes to test plugins by os.Exec() --- watchForNewDrives.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'watchForNewDrives.go') diff --git a/watchForNewDrives.go b/watchForNewDrives.go index 74b2efe..78b2954 100644 --- a/watchForNewDrives.go +++ b/watchForNewDrives.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "log" "syscall" ) @@ -43,7 +42,7 @@ func listenForBlockEvents() { msg := parseUevent(buf[:n]) if msg["SUBSYSTEM"] == "block" && msg["ACTION"] == "add" { - fmt.Printf("New block device added: %s\n", msg["DEVNAME"]) + log.Printf("New block device added: %s\n", msg["DEVNAME"]) } } } -- cgit v1.2.3