mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Corrected nmap.print_debug_unformatted to print if the verbosity is greater
than or _equal_ to the specified verbosity. See http://nmap.org/nsedoc/modules/stdnse.html#print_debug
This commit is contained in:
parent
c361d17734
commit
e6505d9954
1 changed files with 1 additions and 1 deletions
|
|
@ -543,7 +543,7 @@ static int l_print_debug_unformatted(lua_State *L) {
|
|||
if (lua_gettop(L) != 2) return luaL_error(L, "Incorrect number of arguments\n");
|
||||
|
||||
verbosity = luaL_checkinteger(L, 1);
|
||||
if (verbosity > o.verbose) return 0;
|
||||
if (verbosity >= o.verbose) return 0;
|
||||
out = luaL_checkstring(L, 2);
|
||||
|
||||
log_write(LOG_STDOUT, "%s DEBUG: %s\n", SCRIPT_ENGINE, out);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue