1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 11:59:03 +00:00

stdnse.print_debug -> stdnse.debug

This commit is contained in:
batrick
2014-08-02 03:46:13 +00:00
parent 4201aa8eac
commit 59562d1c50

View File

@@ -442,15 +442,14 @@ function check(status, response, track)
track.hseq = track.hseq+1
elseif track.mseq:match(('|%d|'):format(seq)) then -- one of our missing seq#
track.mseq:gsub(('|%d|'):format(seq), '|', 1)
stdnse.print_debug(3,
'Response from %s with sequence number %s was previously missing.', -- this never seems to happen!
stdnse.debug3('Response from %s with sequence number %s was previously missing.', -- this never seems to happen!
track.target, seq
)
elseif seq > track.hseq then -- some seq# have gone missing
for i=track.hseq+1, seq-1 do
track.mseq = ('%s%d|'):format(track.mseq, i)
end
stdnse.print_debug(3,
stdnse.debug3(
'Response from %s was out of sequence - expected #%d but got #%d (missing:%s)',
track.target, track.hseq+1, seq, track.mseq
)