Skip to content

Commit

Permalink
Use stdout instead of stderr for "Target list from interface" message (
Browse files Browse the repository at this point in the history
…#177)

* Use stdout instead of stderr for target list message

* Updated ChangeLog
  • Loading branch information
royhills authored Jan 10, 2024
1 parent da6f3aa commit 97e3b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2024-01-10 Roy Hills <[email protected]>

* arp-scan.c: Use printf() instead of warn_msg() for the "Target list
from interface" message so the output is sent to stdout instead of
stderr.

2024-01-04 Roy Hills <[email protected]>

* configure.ac, README.md: Require C compiler with C99 language support.
Expand Down
4 changes: 2 additions & 2 deletions arp-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ main(int argc, char *argv[]) {
c_netmask = make_message("%s", cp);
snprintf(localnet_descr, 32, "%s:%s", c_network, c_netmask);
if (!plain_flag) {
warn_msg("Target list from interface: network %s netmask %s",
c_network, c_netmask);
printf("Target list from interface: network %s netmask %s\n",
c_network, c_netmask);
}
free(c_network);
free(c_netmask);
Expand Down

0 comments on commit 97e3b76

Please sign in to comment.