mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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:
@@ -143,7 +143,7 @@ Attribute = {
|
||||
( attr.type == Attribute.SOURCE_ADDRESS ) or
|
||||
( attr.type == Attribute.CHANGED_ADDRESS ) ) then
|
||||
if ( attr.length ~= 8 ) then
|
||||
stdnse.print_debug(2, "Incorrect attribute length")
|
||||
stdnse.debug2("Incorrect attribute length")
|
||||
end
|
||||
attr.addr = parseAddress(data, pos)
|
||||
elseif( attr.type == Attribute.SERVER ) then
|
||||
|
||||
Reference in New Issue
Block a user