mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 04:09:01 +00:00
more stdnse.print_debug -> stdnse.debug
$ sed -i 's/stdnse.print_debug( *\([0-9]*\) *, *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug\1("\2"/' *.nse
$ sed -i 's/stdnse.print_debug( *" *%s *:* *\([^"]*\)" *, *SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
This commit is contained in:
@@ -201,21 +201,21 @@ local function process_instance( instance )
|
||||
foundVersion, ssnetlibVersion = mssql.Helper.GetInstanceVersion( instance )
|
||||
if ( foundVersion ) then
|
||||
instance.version = ssnetlibVersion
|
||||
stdnse.print_debug( 1, "%s: Retrieved SSNetLib version for %s.", SCRIPT_NAME, instance:GetName() )
|
||||
stdnse.debug1("Retrieved SSNetLib version for %s.", instance:GetName() )
|
||||
else
|
||||
stdnse.print_debug( 1, "%s: Could not retrieve SSNetLib version for %s.", SCRIPT_NAME, instance:GetName() )
|
||||
stdnse.debug1("Could not retrieve SSNetLib version for %s.", instance:GetName() )
|
||||
end
|
||||
end
|
||||
|
||||
-- If we didn't get a version from SSNetLib, give the user some detail as to why
|
||||
if ( not foundVersion ) then
|
||||
if ( not instance:HasNetworkProtocols() ) then
|
||||
stdnse.print_debug( 1, "%s: %s has no network protocols enabled.", SCRIPT_NAME, instance:GetName() )
|
||||
stdnse.debug1("%s has no network protocols enabled.", instance:GetName() )
|
||||
end
|
||||
if ( instance.version ) then
|
||||
stdnse.print_debug( 1, "%s: Using version number from SSRP response for %s.", SCRIPT_NAME, instance:GetName() )
|
||||
stdnse.debug1("Using version number from SSRP response for %s.", instance:GetName() )
|
||||
else
|
||||
stdnse.print_debug( 1, "%s: Version info could not be retrieved for %s.", SCRIPT_NAME, instance:GetName() )
|
||||
stdnse.debug1("Version info could not be retrieved for %s.", instance:GetName() )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user