mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 06:59:01 +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:
@@ -249,7 +249,7 @@ AMQP = {
|
||||
-- parse frame header
|
||||
local frametype, chnumber, framesize, method
|
||||
_, frametype, chnumber, framesize, method = bin.unpack(">CSII", tmp)
|
||||
stdnse.print_debug("frametype: %d, chnumber: %d, framesize: %d, method: %d", frametype, chnumber, framesize, method)
|
||||
stdnse.debug1("frametype: %d, chnumber: %d, framesize: %d, method: %d", frametype, chnumber, framesize, method)
|
||||
|
||||
if (frametype ~= 1) then
|
||||
return false, ("ERROR: AQMP:handshake expected header (1) frame, but was %d"):format(frametype)
|
||||
|
||||
Reference in New Issue
Block a user