mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 05:09:14 +00:00
more stdnse.print_debug -> stdnse.debug
This one also fixes format string bugs:
stdnse.print_debug(foo) --> stdnse.debug1("%s", foo)
$ sed -i 's/stdnse.print_debug( *\([a-zA-Z0-9][a-zA-Z0-9_]*\) *)/stdnse.debug1("%s", \1)/' *.nse
$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *\([a-zA-Z0-9][a-zA-Z0-9_]*\) *)/stdnse.debug\1("%s", \2)/' *.nse
This commit is contained in:
@@ -111,7 +111,7 @@ action = function(host, port)
|
||||
local path = stdnse.get_script_args("ssl-known-key.fingerprintfile") or FINGERPRINT_FILE
|
||||
local status, result = get_fingerprints(path)
|
||||
if not status then
|
||||
stdnse.print_debug(1, result)
|
||||
stdnse.debug1("%s", result)
|
||||
return
|
||||
end
|
||||
local fingerprints = result
|
||||
|
||||
Reference in New Issue
Block a user