mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41: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:
@@ -182,7 +182,7 @@ end
|
||||
|
||||
--Some local shortcuts
|
||||
local function dbg(str,...)
|
||||
stdnse.print_debug("Json:"..str, ...)
|
||||
stdnse.debug1("Json:"..str, ...)
|
||||
end
|
||||
local function d4(str,...)
|
||||
if nmap.debugging() > 3 then dbg(str, ...) end
|
||||
@@ -193,7 +193,7 @@ end
|
||||
|
||||
--local dbg =stdnse.print_debug
|
||||
local function dbg_err(str,...)
|
||||
stdnse.print_debug("json-ERR:"..str, ...)
|
||||
stdnse.debug1("json-ERR:"..str, ...)
|
||||
end
|
||||
|
||||
-- See section 2.5 for escapes.
|
||||
|
||||
Reference in New Issue
Block a user