From 8144c92dd01bbc1e0ddb49a3e373664093e5ce37 Mon Sep 17 00:00:00 2001 From: Emil Hessman Date: Tue, 16 Dec 2014 07:11:36 +0100 Subject: [PATCH] post-processor/vagrant-cloud: fix incorrect printf verb types Fixes the following vet reports: post-processor/vagrant-cloud/client.go:81: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:99: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:131: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:156: arg resp for printf verb %s of wrong type: *net/http.Response post-processor/vagrant-cloud/client.go:175: arg resp for printf verb %s of wrong type: *net/http.Response --- post-processor/vagrant-cloud/client.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/post-processor/vagrant-cloud/client.go b/post-processor/vagrant-cloud/client.go index 104f13832..0c475075d 100644 --- a/post-processor/vagrant-cloud/client.go +++ b/post-processor/vagrant-cloud/client.go @@ -78,7 +78,7 @@ func (v VagrantCloudClient) Get(path string) (*http.Response, error) { req.Header.Add("Content-Type", "application/json") resp, err := v.client.Do(req) - log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp) + log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp) return resp, err } @@ -96,7 +96,7 @@ func (v VagrantCloudClient) Delete(path string) (*http.Response, error) { req.Header.Add("Content-Type", "application/json") resp, err := v.client.Do(req) - log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp) + log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp) return resp, err } @@ -128,7 +128,7 @@ func (v VagrantCloudClient) Upload(path string, url string) (*http.Response, err resp, err := v.client.Do(request) - log.Printf("Post-Processor Vagrant Cloud Upload Response: \n\n%s", resp) + log.Printf("Post-Processor Vagrant Cloud Upload Response: \n\n%+v", resp) return resp, err } @@ -153,7 +153,7 @@ func (v VagrantCloudClient) Post(path string, body interface{}) (*http.Response, resp, err := v.client.Do(req) - log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp) + log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp) return resp, err } @@ -172,7 +172,7 @@ func (v VagrantCloudClient) Put(path string) (*http.Response, error) { resp, err := v.client.Do(req) - log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%s", resp) + log.Printf("Post-Processor Vagrant Cloud API Response: \n\n%+v", resp) return resp, err }