mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-27 12:38:11 +00:00
vsudd: Correctly format go Error's with %s
%#v is not correct (includes opaque pointers etc). Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
78f4d5fa30
commit
98174da08f
@ -62,7 +62,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
l, err = hvsock.Listen(hvsock.HypervAddr{VmId: hvsock.GUID_WILDCARD, ServiceId: svcid})
|
l, err = hvsock.Listen(hvsock.HypervAddr{VmId: hvsock.GUID_WILDCARD, ServiceId: svcid})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to bind to hvsock port: %#v", err)
|
log.Fatalf("Failed to bind to hvsock port: %s", err)
|
||||||
}
|
}
|
||||||
log.Printf("Listening on ServiceId %s", svcid)
|
log.Printf("Listening on ServiceId %s", svcid)
|
||||||
useHVsock = true
|
useHVsock = true
|
||||||
@ -73,7 +73,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
l, err = vsock.Listen(uint(port))
|
l, err = vsock.Listen(uint(port))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failed to bind to vsock port %u: %#v", port, err)
|
log.Fatalf("Failed to bind to vsock port %u: %s", port, err)
|
||||||
}
|
}
|
||||||
log.Printf("Listening on port %u", port)
|
log.Printf("Listening on port %u", port)
|
||||||
useHVsock = false
|
useHVsock = false
|
||||||
@ -84,7 +84,7 @@ func main() {
|
|||||||
connid++
|
connid++
|
||||||
conn, err := l.Accept()
|
conn, err := l.Accept()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error accepting connection: %#v", err)
|
log.Printf("Error accepting connection: %s", err)
|
||||||
return // no more listening
|
return // no more listening
|
||||||
}
|
}
|
||||||
log.Printf("Connection %d from: %s\n", connid, conn.RemoteAddr())
|
log.Printf("Connection %d from: %s\n", connid, conn.RemoteAddr())
|
||||||
|
Loading…
Reference in New Issue
Block a user