Skip to content

Commit d1590e7

Browse files
authored
Merge pull request kubernetes#93919 from azush26/modify-format
Modify the warning message format from "%d" to "%v" in shared_informer.go.
2 parents 80c2433 + ac1168e commit d1590e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

staging/src/k8s.io/client-go/tools/cache/shared_informer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ func (s *sharedIndexInformer) AddEventHandlerWithResyncPeriod(handler ResourceEv
485485

486486
if resyncPeriod > 0 {
487487
if resyncPeriod < minimumResyncPeriod {
488-
klog.Warningf("resyncPeriod %d is too small. Changing it to the minimum allowed value of %d", resyncPeriod, minimumResyncPeriod)
488+
klog.Warningf("resyncPeriod %v is too small. Changing it to the minimum allowed value of %v", resyncPeriod, minimumResyncPeriod)
489489
resyncPeriod = minimumResyncPeriod
490490
}
491491

492492
if resyncPeriod < s.resyncCheckPeriod {
493493
if s.started {
494-
klog.Warningf("resyncPeriod %d is smaller than resyncCheckPeriod %d and the informer has already started. Changing it to %d", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
494+
klog.Warningf("resyncPeriod %v is smaller than resyncCheckPeriod %v and the informer has already started. Changing it to %v", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
495495
resyncPeriod = s.resyncCheckPeriod
496496
} else {
497497
// if the event handler's resyncPeriod is smaller than the current resyncCheckPeriod, update

0 commit comments

Comments
 (0)