mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
nselib stdnse.print_debug -> stdnse.debug
$ f() { find -name \*.lua -exec /bin/echo sed -i "$1" {} \; ; }
$ f 's/stdnse.print_debug( *\([0-9]*\) *, */stdnse.debug\1(/'
$ f 's/stdnse.print_debug( *"\(.*\))/stdnse.debug1("\1)/'
This commit is contained in:
@@ -51,7 +51,7 @@ _ENV = stdnse.module("sasl", stdnse.seeall)
|
||||
|
||||
local HAVE_SSL, openssl = pcall(require, 'openssl')
|
||||
if ( not(HAVE_SSL) ) then
|
||||
stdnse.print_debug(1,
|
||||
stdnse.debug1(
|
||||
"sasl.lua: OpenSSL not present, SASL support limited.")
|
||||
end
|
||||
local MECHANISMS = { }
|
||||
@@ -348,7 +348,7 @@ function check_mechanism(mechanism)
|
||||
lmech = mechanism
|
||||
lcallback = MECHANISMS[mechanism]
|
||||
else
|
||||
stdnse.print_debug(3,
|
||||
stdnse.debug3(
|
||||
"sasl library does not support '%s' mechanism", mechanism)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user