From: Joseph Sutton Date: Wed, 13 Dec 2023 19:25:38 +0000 (+1300) Subject: buildtools: Use correct variable in error message X-Git-Tag: talloc-2.4.2~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfefdcb1e00c8e1c29b2fc2e61a21068b11d1f25;p=thirdparty%2Fsamba.git buildtools: Use correct variable in error message 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 --- 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