diff options
| author | Jeff Carr <[email protected]> | 2025-08-16 16:23:08 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-16 21:50:40 -0500 |
| commit | edb3e23311b9cd667898e625b07f5dbeb43e30e3 (patch) | |
| tree | 53da542d42f7b763c92b5622e7968b854ccbf7a6 /watchForNewDrives.go | |
| parent | de6b45ced2fec64bdd4eb1c7d90c13251d394fe8 (diff) | |
fixes to test plugins by os.Exec()v0.0.2
Diffstat (limited to 'watchForNewDrives.go')
| -rw-r--r-- | watchForNewDrives.go | 3 |
1 files changed, 1 insertions, 2 deletions
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"]) } } } |
