From 8c930aeeaa8ce4a46175ba2a6c275c350469c39b Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 29 Jan 2025 13:08:14 -0500 Subject: [PATCH] lxc/launch: avoid fmt.Sprintf() as it is slow Signed-off-by: Simon Deziel --- lxc/launch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxc/launch.go b/lxc/launch.go index e5b12d0590bb..4c26d686ba71 100644 --- a/lxc/launch.go +++ b/lxc/launch.go @@ -118,7 +118,7 @@ func (c *cmdLaunch) run(cmd *cobra.Command, args []string) error { progress.Done("") prettyName := name if remote != "" { - prettyName = fmt.Sprintf("%s:%s", remote, name) + prettyName = remote + ":" + name } return fmt.Errorf("%s\n"+i18n.G("Try `lxc info --show-log %s` for more info"), err, prettyName)