mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
stdnse.print_debug -> stdnse.debug1
$ sed -i 's/stdnse.print_debug(1, "%s: \([^"]*\)", SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
This commit is contained in:
@@ -59,12 +59,12 @@ local function loadFingerprints(filename, cat)
|
||||
filename = nmap.fetchfile('nselib/data/' .. filename) or filename
|
||||
|
||||
-- Load the file
|
||||
stdnse.print_debug(1, "%s: Loading fingerprints: %s", SCRIPT_NAME, filename)
|
||||
stdnse.debug1("Loading fingerprints: %s", filename)
|
||||
local env = setmetatable({fingerprints = {}}, {__index = _G});
|
||||
file = loadfile(filename, "t", env)
|
||||
|
||||
if( not(file) ) then
|
||||
stdnse.print_debug(1, "%s: Couldn't load the file: %s", SCRIPT_NAME, filename)
|
||||
stdnse.debug1("Couldn't load the file: %s", filename)
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user