Skip to content

Commit

Permalink
tools/nut-scanner/nut-scanner.c: clarify some code comments [networku…
Browse files Browse the repository at this point in the history
…pstools#2244]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jul 4, 2024
1 parent c57a3ad commit acfc878
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/nut-scanner/nut-scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,11 @@ int main(int argc, char *argv[])
}

if (allow_xml && nutscan_avail_xml_http) {
/* NOTE: No check for IP address range,
* NetXML default scan is broadcast
* so it just runs (if requested and
* supported).
*/
upsdebugx(quiet, "Scanning XML/HTTP bus.");
xml_sec.usec_timeout = timeout;
#ifdef HAVE_PTHREAD
Expand Down Expand Up @@ -939,6 +944,11 @@ int main(int argc, char *argv[])
}

if (allow_ipmi && nutscan_avail_ipmi) {
/* NOTE: No check for IP address range,
* IPMI default scan is local device
* so it just runs (if requested and
* supported).
*/
upsdebugx(quiet, "Scanning IPMI bus.");
#ifdef HAVE_PTHREAD
upsdebugx(1, "IPMI SCAN: starting pthread_create with run_ipmi...");
Expand Down

0 comments on commit acfc878

Please sign in to comment.