diff --git a/daemon/libnetwork/diagnostic/types.go b/daemon/libnetwork/diagnostic/types.go index ef1d7f7192..2be8441610 100644 --- a/daemon/libnetwork/diagnostic/types.go +++ b/daemon/libnetwork/diagnostic/types.go @@ -111,7 +111,7 @@ type TableEntryObj struct { } func (t *TableEntryObj) String() string { - return fmt.Sprintf("%d) k:`%s` -> v:`%s` owner:`%s`\n", t.Index, t.Key, t.Value, t.Owner) + return fmt.Sprintf("%d) k:%#q -> v:%#q owner:%#q\n", t.Index, t.Key, t.Value, t.Owner) } // TableEndpointsResult fully typed message for proper unmarshaling on the client side diff --git a/pkg/plugins/pluginrpc-gen/parser_test.go b/pkg/plugins/pluginrpc-gen/parser_test.go index bf16ddb358..0838b6343a 100644 --- a/pkg/plugins/pluginrpc-gen/parser_test.go +++ b/pkg/plugins/pluginrpc-gen/parser_test.go @@ -248,7 +248,7 @@ func TestParseWithMultilineAnnotation(t *testing.T) { func assertName(t *testing.T, expected, actual string) { if expected != actual { - fatalOut(t, fmt.Sprintf("expected name to be `%s`, got: %s", expected, actual)) + fatalOut(t, fmt.Sprintf("expected name to be %#q, got: %s", expected, actual)) } }