From 790beb241913d2d0039b0e407d60663a5c85a8e8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 17 Dec 2020 17:34:32 +0000 Subject: [PATCH] Simplify: No way to have only 1 scanned port in ignored state. --- output.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/output.cc b/output.cc index 8d1ddf116..f9f8e4d36 100644 --- a/output.cc +++ b/output.cc @@ -550,11 +550,9 @@ void printportoutput(Target *currenths, PortList *plist) { log_write(LOG_PLAIN, "0 ports scanned on %s\n", currenths->NameIP(hostname, sizeof(hostname))); } else { - log_write(LOG_PLAIN, "%s %d scanned %s on %s %s ", - (numignoredports == 1) ? "The" : "All", numignoredports, - (numignoredports == 1) ? "port" : "ports", - currenths->NameIP(hostname, sizeof(hostname)), - (numignoredports == 1) ? "is" : "are"); + log_write(LOG_PLAIN, "All %d scanned ports on %s are ", + numignoredports, + currenths->NameIP(hostname, sizeof(hostname))); if (plist->numIgnoredStates() == 1) { log_write(LOG_PLAIN, "%s", statenum2str(plist->nextIgnoredState(PORT_UNKNOWN))); } else {