mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +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:
@@ -81,13 +81,13 @@ Session = {
|
||||
.. "</credentials></authenticate>")
|
||||
|
||||
if not status then
|
||||
stdnse.print_debug("ERROR: %s", err)
|
||||
stdnse.debug1("ERROR: %s", err)
|
||||
return false, err
|
||||
end
|
||||
|
||||
status, xmldata = self.socket:receive()
|
||||
if not status then
|
||||
stdnse.print_debug("ERROR: %s", xmldata)
|
||||
stdnse.debug1("ERROR: %s", xmldata)
|
||||
return false, xmldata
|
||||
end
|
||||
|
||||
@@ -102,13 +102,13 @@ Session = {
|
||||
status, err = self.socket:send("<get_targets/>")
|
||||
|
||||
if not status then
|
||||
stdnse.print_debug("ERROR: %s", err)
|
||||
stdnse.debug1("ERROR: %s", err)
|
||||
return false, err
|
||||
end
|
||||
|
||||
status, xmldata = self.socket:receive()
|
||||
if not status then
|
||||
stdnse.print_debug("ERROR: %s", xmldata)
|
||||
stdnse.debug1("ERROR: %s", xmldata)
|
||||
return false, xmldata
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user