diff mbox series

[2/5] uki.bbclass: use f-string for kernel-not-found error message

Message ID 20261027081221.13-2-maxin.john@gehealthcare.com
State Under Review
Headers show
Series [1/5] insane: fix unimplemented-ptest error handling | expand

Commit Message

Maxin John Oct. 27, 2026, 8:12 a.m. UTC
The message was an f-string without placeholders combined with
'%'-formatting. Use a single f-string referencing the kernel variable.

Signed-off-by: Maxin John <maxin.john@gehealthcare.com>
---
 meta/classes-recipe/uki.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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')