mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +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:
@@ -190,7 +190,7 @@ Comm = {
|
||||
local condvar = nmap.condvar(svcresponse)
|
||||
local status, response = dns.query( svc, { port = port, host = host, dtype="PTR", retPkt=true, retAll=true, multiple=multiple, sendCount=1, timeout=2000} )
|
||||
if not status then
|
||||
stdnse.print_debug("Failed to query service: %s; Error: %s", svc, response)
|
||||
stdnse.debug1("Failed to query service: %s; Error: %s", svc, response)
|
||||
return
|
||||
end
|
||||
svcresponse[svc] = svcresponse[svc] or {}
|
||||
|
||||
Reference in New Issue
Block a user