summaryrefslogtreecommitdiff
path: root/watchForNewDrives.go
diff options
context:
space:
mode:
Diffstat (limited to 'watchForNewDrives.go')
-rw-r--r--watchForNewDrives.go3
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"])
}
}
}