1
0
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:
fyodor
2007-08-11 04:39:17 +00:00
parent 7652ebeefb
commit e988f4878d
3 changed files with 18 additions and 8 deletions

9
nselib/stdnse.lua Normal file
View 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