mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +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:
@@ -53,7 +53,7 @@ _ENV = stdnse.module("rmi", stdnse.seeall)
|
||||
|
||||
local function dbg(str,...)
|
||||
local arg={...}
|
||||
stdnse.print_debug(3,"RMI:"..str, table.unpack(arg))
|
||||
stdnse.debug3("RMI:"..str, table.unpack(arg))
|
||||
end
|
||||
-- Convenience function to both print an error message and return <false, msg>
|
||||
-- Example usage :
|
||||
@@ -62,7 +62,7 @@ end
|
||||
-- end
|
||||
local function doh(str,...)
|
||||
local arg={...}
|
||||
stdnse.print_debug("RMI-ERR:"..tostring(str), table.unpack(arg))
|
||||
stdnse.debug1("RMI-ERR:"..tostring(str), table.unpack(arg))
|
||||
return false, str
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user