1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00

Make the "Moving to completed hosts list" message require o.debugging > 1. This was somehow missed in the merge.

This commit is contained in:
david
2007-08-30 03:24:52 +00:00
parent 1c9700464b
commit b005b9dea7

View File

@@ -1520,13 +1520,13 @@ int UltraScanInfo::removeCompletedHosts() {
hss->target->targetipstr(), scantype2str(scantype), remain, hss->target->targetipstr(), scantype2str(scantype), remain,
(remain == 1)? "host left" : "hosts left"); (remain == 1)? "host left" : "hosts left");
} }
if (o.debugging) { if (o.debugging > 1) {
unsigned int num_outstanding_probes; unsigned int num_outstanding_probes;
num_outstanding_probes = hss->probes_outstanding.size(); num_outstanding_probes = hss->probes_outstanding.size();
log_write(LOG_PLAIN, "Moving %s to completed hosts list with %d outstanding %s.\n", log_write(LOG_PLAIN, "Moving %s to completed hosts list with %d outstanding %s.\n",
hss->target->targetipstr(), num_outstanding_probes, hss->target->targetipstr(), num_outstanding_probes,
num_outstanding_probes == 1 ? "probe" : "probes"); num_outstanding_probes == 1 ? "probe" : "probes");
if (o.debugging > 1) { if (o.debugging > 2) {
char tmpbuf[32]; char tmpbuf[32];
std::list<UltraProbe *>::iterator iter; std::list<UltraProbe *>::iterator iter;
for (iter = hss->probes_outstanding.begin(); iter != hss->probes_outstanding.end(); iter++) for (iter = hss->probes_outstanding.begin(); iter != hss->probes_outstanding.end(); iter++)