From 9f948348263891ae5c9f71ca6b0eb69830374349 Mon Sep 17 00:00:00 2001 From: Taliesin Sisson Date: Sun, 18 Oct 2015 14:01:18 +0100 Subject: [PATCH] Use correct formatting for printf --- builder/hyperv/common/step_mount_integration_services.go | 2 +- builder/hyperv/common/step_unmount_integration_services.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/hyperv/common/step_mount_integration_services.go b/builder/hyperv/common/step_mount_integration_services.go index 5aad1f4ab..63e775a0d 100644 --- a/builder/hyperv/common/step_mount_integration_services.go +++ b/builder/hyperv/common/step_mount_integration_services.go @@ -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) diff --git a/builder/hyperv/common/step_unmount_integration_services.go b/builder/hyperv/common/step_unmount_integration_services.go index a905f2a8b..d79245782 100644 --- a/builder/hyperv/common/step_unmount_integration_services.go +++ b/builder/hyperv/common/step_unmount_integration_services.go @@ -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