Use correct formatting for printf

This commit is contained in:
Taliesin Sisson 2015-10-18 14:01:18 +01:00
parent 54733323a8
commit 9f94834826
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func (s *StepMountSecondaryDvdImages) Run(state multistep.StateBag) multistep.St
return multistep.ActionHalt
}
log.Println(fmt.Sprintf("Saving DVD properties %s DVDs", len(dvdProperties)))
log.Println(fmt.Sprintf("Saving DVD properties %d DVDs", len(dvdProperties)))
state.Put("secondary.dvd.properties", dvdProperties)

View File

@ -25,7 +25,7 @@ func (s *StepUnmountSecondaryDvdImages) Run(state multistep.StateBag) multistep.
dvdProperties := state.Get("secondary.dvd.properties").([]DvdControllerProperties)
log.Println(fmt.Sprintf("Found DVD properties %s", len(dvdProperties)))
log.Println(fmt.Sprintf("Found DVD properties %d", len(dvdProperties)))
for _, dvdProperty := range dvdProperties {
controllerNumber := dvdProperty.ControllerNumber