1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Changed two OS scan error() calls to LOG_STDOUT instead. They aren't

errors and having them go to STDERR could be confusing.
This commit is contained in:
bmenrigh
2009-04-08 01:14:48 +00:00
parent b38b5f6270
commit 24fbedd748

View File

@@ -1915,7 +1915,7 @@ void HostOsScan::makeTSeqFP(HostOsScanStats *hss) {
if (hss->si.lastboot && (hss->seq_send_times[0].tv_sec - hss->si.lastboot > 63072000)) {
/* Up 2 years? Perhaps, but they're probably lying. */
if (o.debugging) {
error("Ignoring claimed %s uptime of %lu days",
log_write(LOG_STDOUT, "Ignoring claimed %s uptime of %lu days",
hss->target->targetipstr(),
(hss->seq_send_times[0].tv_sec - hss->si.lastboot) / 86400);
}
@@ -3642,7 +3642,7 @@ static void endRound(OsScanInfo *OSI, HostOsScan *HOS, int roundNum) {
hsi->FP_matches[roundNum].num_perfect_matches > 0) {
memcpy(&(hsi->target->seq), &hsi->hss->si, sizeof(struct seq_info));
if (roundNum > 0) {
if(o.verbose) error("WARNING: OS didn't match until try #%d", roundNum + 1);
if(o.verbose) log_write(LOG_STDOUT, "WARNING: OS didn't match until try #%d", roundNum + 1);
}
match_fingerprint(hsi->target->FPR->FPs[roundNum], hsi->target->FPR,
o.reference_FPs, OSSCAN_GUESS_THRESHOLD);