mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Print/log pointers of structs with %#v instead of %+v
There are many places in k8s where %+v is used to format a pointer to struct, which isn't working as expected. Fixes #26591
This commit is contained in:
@@ -817,7 +817,7 @@ Scaling foo-v2 up to 2
|
||||
oldReady := next(&oldReady)
|
||||
newReady := next(&newReady)
|
||||
if oldReady == -1 || newReady == -1 {
|
||||
t.Fatalf("unexpected getReadyPods call for:\noldRc: %+v\nnewRc: %+v", oldRc, newRc)
|
||||
t.Fatalf("unexpected getReadyPods call for:\noldRc: %#v\nnewRc: %#v", oldRc, newRc)
|
||||
}
|
||||
return int32(oldReady), int32(newReady), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user