diff mbox series

[1/4] runqemu: Stop using warn() since its been deprecated

Message ID 20230626133213.47920-2-adrian.freihofer@siemens.com
State Accepted, archived
Commit 9263497880b3154d65ed713498749f906534a055
Headers show
Series fix runqemu-ifup/down scritps | expand

Commit Message

Adrian Freihofer June 26, 2023, 1:29 p.m. UTC
From: Alejandro Hernandez Samaniego <alejandro@enedino.org>

logger.warn() has been deprecated, logger.warning() should be used instead.

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
---
 scripts/runqemu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/scripts/runqemu b/scripts/runqemu
index e1aa5a925c8..3f187ca793c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -648,10 +648,10 @@  to your build configuration.
                         elif fsflag == 'kernel-in-fs':
                             wic_fs = False
                         else:
-                            logger.warn('Unknown flag "%s:%s" in QB_FSINFO', fstype, fsflag)
+                            logger.warning('Unknown flag "%s:%s" in QB_FSINFO', fstype, fsflag)
                             continue
                     else:
-                        logger.warn('QB_FSINFO is not supported for image type "%s"', fstype)
+                        logger.warning('QB_FSINFO is not supported for image type "%s"', fstype)
                         continue
 
                     if fstype in self.fsinfo: