mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01: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:
@@ -225,7 +225,7 @@ function parse_lines(lines, data_struct)
|
||||
_, ret[index] = parse_lines( lines, value )
|
||||
else
|
||||
-- TEMP
|
||||
stdnse.print_debug( "Error in datafiles.parse_lines: Index with type %s has unexpected value %s", type(index), type(value))
|
||||
stdnse.debug1("Error in datafiles.parse_lines: Index with type %s has unexpected value %s", type(index), type(value))
|
||||
end
|
||||
elseif type(index) == "string" or type(index) == "function" then
|
||||
if type( value ) == "string" or type( value ) == "function" then
|
||||
@@ -235,7 +235,7 @@ function parse_lines(lines, data_struct)
|
||||
end
|
||||
else
|
||||
-- TEMP
|
||||
stdnse.print_debug( "Error in datafiles.parse_lines: Index with type %s has unexpected value %s", type(index), type(value))
|
||||
stdnse.debug1("Error in datafiles.parse_lines: Index with type %s has unexpected value %s", type(index), type(value))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user