mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31: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:
@@ -165,7 +165,7 @@ TAP = {
|
||||
-- @return status true on success, false on failure
|
||||
parse = function(self)
|
||||
if ( 24 > #self.data ) then
|
||||
stdnse.print_debug("membase: Header packet too short (%d bytes)", #self.data)
|
||||
stdnse.debug1("membase: Header packet too short (%d bytes)", #self.data)
|
||||
return false, "Packet to short"
|
||||
end
|
||||
local pos
|
||||
@@ -286,7 +286,7 @@ Helper = {
|
||||
local header = TAP.Response.Header:new(data)
|
||||
|
||||
if ( header.opcode ~= req.header.opcode ) then
|
||||
stdnse.print_debug("WARNING: Received invalid op code, request contained (%d), response contained (%d)", req.header.opcode, header.opcode)
|
||||
stdnse.debug1("WARNING: Received invalid op code, request contained (%d), response contained (%d)", req.header.opcode, header.opcode)
|
||||
end
|
||||
|
||||
if ( not(TAP.Response.Decoder[tonumber(header.opcode)]) ) then
|
||||
|
||||
Reference in New Issue
Block a user