All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rootfs.py: Fix logger error message format
@ 2024-04-17 19:56 John Ripple
  2024-04-19 14:19 ` [OE-core] " Tim Orling
  0 siblings, 1 reply; 2+ messages in thread
From: John Ripple @ 2024-04-17 19:56 UTC (permalink / raw
  To: openembedded-core@lists.openembedded.org

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

This patch adds a missing "%s" format in a logger.error call. Without
this addition the logger itself would error out and not print a useful
message.

Signed-off-by: John Ripple <john.ripple@keysight.com>
---
 scripts/lib/wic/plugins/source/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py
index e29f3a4c2f..c990143c0d 100644
--- a/scripts/lib/wic/plugins/source/rootfs.py
+++ b/scripts/lib/wic/plugins/source/rootfs.py
@@ -43,7 +43,7 @@ class RootfsPlugin(SourcePlugin):
         # directory, or modify a directory outside OpenEmbedded).
         full_path = os.path.realpath(os.path.join(rootfs_dir, path))
         if not full_path.startswith(os.path.realpath(rootfs_dir)):
-            logger.error("%s: Must point inside the rootfs:" % (cmd, path))
+            logger.error("%s: Must point inside the rootfs: %s" % (cmd, path))
             sys.exit(1)

         return full_path
--
2.34.1

[-- Attachment #2: Type: text/html, Size: 7355 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-19 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-17 19:56 [PATCH] rootfs.py: Fix logger error message format John Ripple
2024-04-19 14:19 ` [OE-core] " Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.