1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

reverted previous commit, due to unfinnished changes in smb, asn1 and smbauth

libraries.
This commit is contained in:
patrik
2012-06-06 22:04:28 +00:00
parent c4617f8d31
commit 721ac80024
7 changed files with 19 additions and 85 deletions

View File

@@ -32,18 +32,18 @@ _ENV = stdnse.module("json", stdnse.seeall)
--Some local shortcuts
local function dbg(str,...)
stdnse.print_debug("Json:"..str, ...)
stdnse.print_debug("Json:"..str, table.unpack(arg))
end
local function d4(str,...)
if nmap.debugging() > 3 then dbg(str,...) end
if nmap.debugging() > 3 then dbg(str,table.unpack(arg)) end
end
local function d3(str,...)
if nmap.debugging() > 2 then dbg(str,...) end
if nmap.debugging() > 2 then dbg(str,table.unpack(arg)) end
end
--local dbg =stdnse.print_debug
local function dbg_err(str,...)
stdnse.print_debug("json-ERR:"..str, ...)
stdnse.print_debug("json-ERR:"..str, table.unpack(arg))
end
-- Javascript null representation, see explanation above