1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

Tidy up the message that we're moving a host to the completed list a bit. This is good for release now.

This commit is contained in:
david
2007-08-28 00:28:24 +00:00
parent bf7f48ebf7
commit 433917fc46

View File

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