mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 08:29:04 +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:
@@ -76,7 +76,7 @@ IAX2 = {
|
||||
local pos, frame_type = bin.unpack("C", data)
|
||||
if ( bit.band(frame_type, 0x80) == 0 ) then
|
||||
print("frame_type", stdnse.tohex(frame_type))
|
||||
stdnse.print_debug(2, "Frametype not supported")
|
||||
stdnse.debug2("Frametype not supported")
|
||||
return
|
||||
end
|
||||
header.type = IAX2.PacketType.FULL
|
||||
|
||||
Reference in New Issue
Block a user