summaryrefslogtreecommitdiff
path: root/rtnetlink.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
committerJeff Carr <[email protected]>2023-12-16 09:02:59 -0600
commit27696b976485f989d664f330e9c328de93e8e672 (patch)
tree3fd2fe38e90e78d782e6f65cc726de8c54fa7c18 /rtnetlink.go
parentdbd81e9462846f716ba4cebe383d2215e01ce563 (diff)
gocui mode works again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'rtnetlink.go')
-rw-r--r--rtnetlink.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/rtnetlink.go b/rtnetlink.go
index 4185c99..46898b5 100644
--- a/rtnetlink.go
+++ b/rtnetlink.go
@@ -1,6 +1,7 @@
package main
import (
+ "log"
"github.com/jsimonetti/rtnetlink"
)
@@ -9,7 +10,7 @@ func Example_listLink() {
// Dial a connection to the rtnetlink socket
conn, err := rtnetlink.Dial(nil)
if err != nil {
- log(logError, "Example_listLink() failed", err)
+ log.Println(logError, "Example_listLink() failed", err)
return
}
defer conn.Close()
@@ -17,9 +18,9 @@ func Example_listLink() {
// Request a list of interfaces
msg, err := conn.Link.List()
if err != nil {
- log(err)
+ log.Println(err)
}
- log("%#v", msg)
- log(SPEW, msg)
+ log.Println("%#v", msg)
+ log.Println(SPEW, msg)
}