1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Replace some deprecated print_verbose with verbose1 calls

This commit is contained in:
dmiller
2016-01-04 16:48:08 +00:00
parent f405d71296
commit 226a05af31
3 changed files with 4 additions and 4 deletions

View File

@@ -41,13 +41,13 @@ local interface = stdnse.get_script_args(SCRIPT_NAME .. ".interface") or nmap.ge
prerule = function()
if not nmap.is_privileged() then
stdnse.print_verbose("%s not running for lack of privileges.", SCRIPT_NAME)
stdnse.verbose1("Not running for lack of privileges.")
return false
end
local has_interface = ( interface ~= nil )
if ( not(has_interface) ) then
stdnse.print_verbose("%s no network interface was supplied, aborting ...", SCRIPT_NAME)
stdnse.verbose1("No network interface was supplied, aborting.")
return false
end
return true

View File

@@ -236,7 +236,7 @@ action = function(host, port)
-- release hell...
local pipeline_returns = http.pipeline_go(host, port, all)
if not pipeline_returns then
stdnse.print_verbose(1,"got no answers from pipelined queries")
stdnse.verbose1("got no answers from pipelined queries")
return nil
end
local response = {}

View File

@@ -87,7 +87,7 @@ function script_init()
end
end
if not(isConnected) then
stdnse.print_verbose("failed to connect to directory authorities")
stdnse.verbose1("failed to connect to directory authorities")
end
nmap.registry.tornode.connect = isConnected
end