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

o.numhosts_scanned and o.numhosts_up are now printed as unsigned ints with %u

This commit is contained in:
tudor
2016-08-09 14:31:59 +00:00
parent 1aa7958e23
commit 7f1ec2b806

View File

@@ -2486,7 +2486,7 @@ void print_xml_finished_open(time_t timep, const struct timeval *tv) {
xml_attribute("timestr", "%s", mytime);
xml_attribute("elapsed", "%.2f", o.TimeSinceStart(tv));
xml_attribute("summary",
"Nmap done at %s; %d %s (%d %s up) scanned in %.2f seconds",
"Nmap done at %s; %u %s (%u %s up) scanned in %.2f seconds",
mytime, o.numhosts_scanned,
(o.numhosts_scanned == 1) ? "IP address" : "IP addresses",
o.numhosts_up, (o.numhosts_up == 1) ? "host" : "hosts",
@@ -2531,7 +2531,7 @@ void printfinaloutput() {
}
log_write(LOG_STDOUT | LOG_SKID,
"Nmap done: %d %s (%d %s up) scanned in %.2f seconds\n",
"Nmap done: %u %s (%u %s up) scanned in %.2f seconds\n",
o.numhosts_scanned,
(o.numhosts_scanned == 1) ? "IP address" : "IP addresses",
o.numhosts_up, (o.numhosts_up == 1) ? "host" : "hosts",
@@ -2553,7 +2553,7 @@ void printfinaloutput() {
xml_newline();
log_write(LOG_NORMAL | LOG_MACHINE,
"# Nmap done at %s -- %d %s (%d %s up) scanned in %.2f seconds\n",
"# Nmap done at %s -- %u %s (%u %s up) scanned in %.2f seconds\n",
mytime, o.numhosts_scanned,
(o.numhosts_scanned == 1) ? "IP address" : "IP addresses",
o.numhosts_up, (o.numhosts_up == 1) ? "host" : "hosts",