diff --git a/meta/classes-recipe/uki.bbclass b/meta/classes-recipe/uki.bbclass
index 566eab1eaa..cfb930e93d 100644
--- a/meta/classes-recipe/uki.bbclass
+++ b/meta/classes-recipe/uki.bbclass
@@ -138,7 +138,7 @@ python do_uki() {
     if kernel_filename:
         kernel = "%s/%s" % (deploy_dir_image, kernel_filename)
         if not os.path.exists(kernel):
-            bb.fatal(f"ERROR: cannot find %s" % (kernel))
+            bb.fatal(f"ERROR: cannot find {kernel}")
         ukify_cmd += " --linux=%s" % (kernel)
         # not always needed, ukify can detect version from kernel binary
         kernel_version = d.getVar('KERNEL_VERSION')
