]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
buildtools: Use correct variable in error message
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 13 Dec 2023 19:25:38 +0000 (08:25 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 21 Dec 2023 20:21:34 +0000 (20:21 +0000)
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 '<class 'list'>'”

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 16f962ded6048aa600c6eff6bbb39f2d5acdec71..7b383ea0b7127365f4951c96e6b9acf6aa63555f 100644 (file)
@@ -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