From dfefdcb1e00c8e1c29b2fc2e61a21068b11d1f25 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 14 Dec 2023 08:25:38 +1300 Subject: [PATCH] buildtools: Use correct variable in error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When this error message was copied from CHECK_FUNCS_IN(), the variable name was not changed. This results in messages like this: “Mandatory library 'lib' not found for functions ''” Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- buildtools/wafsamba/samba_autoconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 16f962ded60..7b383ea0b71 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -625,7 +625,7 @@ int foo() if not res: if mandatory: - Logs.error("Mandatory library '%s' not found for functions '%s'" % (lib, list)) + Logs.error("Mandatory library '%s' not found for functions '%s'" % (lib, libs)) sys.exit(1) if empty_decl: # if it isn't a mandatory library, then remove it from dependency lists -- 2.47.3