Skip to content

Commit b45bd2f

Browse files
committed
cmd/gomote: fix formatting error
For streaming the command output from "gomote run", a printf should be print. Otherwise, $ gomote run $VM /bin/echo %d # Streaming results ... %!d(MISSING) # Wrote results ... Change-Id: I8ae879fd6ef6dc68b7cba1f7a723dcd3c6fbd0e7 Reviewed-on: https://go-review.googlesource.com/c/build/+/453096 Run-TryBot: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent 8aee9b6 commit b45bd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gomote/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func doRun(ctx context.Context, inst, cmd string, cmdArgs []string, opts ...runO
363363
// remote error
364364
return fmt.Errorf("unable to execute %s: %w", cmd, err)
365365
}
366-
fmt.Fprintf(outWriter, string(update.GetOutput()))
366+
fmt.Fprint(outWriter, string(update.GetOutput()))
367367
}
368368
}
369369

0 commit comments

Comments
 (0)