mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
merge soc07 r4989 - applied mathew boyle's patch for print_debug
This commit is contained in:
9
nselib/stdnse.lua
Normal file
9
nselib/stdnse.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
print_debug = function(...)
|
||||
local verbosity = 1;
|
||||
if ((#arg > 1) and (tonumber(arg[1]))) then
|
||||
verbosity = table.remove(arg, 1);
|
||||
end
|
||||
|
||||
nmap.print_debug_unformatted(verbosity, string.format(unpack(arg, start)));
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user