aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnet/interface.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-12-14 19:15:33 -0500
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-12-14 19:15:33 -0500
commitc59a19848dd37ac12bf024ba0cc295d3338116ae (patch)
tree12f6a8d9487f6cd9cb94ab348e4226b84c31a737 /src/fnet/interface.c
parentfix RELNOTES (diff)
downloadfirejail-c59a19848dd37ac12bf024ba0cc295d3338116ae.tar.gz
firejail-c59a19848dd37ac12bf024ba0cc295d3338116ae.tar.zst
firejail-c59a19848dd37ac12bf024ba0cc295d3338116ae.zip
redirect output messages to stderr
Diffstat (limited to 'src/fnet/interface.c')
-rw-r--r--src/fnet/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fnet/interface.c b/src/fnet/interface.c
index 8c1fd6ca4..d05c0d50d 100644
--- a/src/fnet/interface.c
+++ b/src/fnet/interface.c
@@ -172,7 +172,7 @@ void net_ifprint(int scan) {
172 if (getifaddrs(&ifaddr) == -1) 172 if (getifaddrs(&ifaddr) == -1)
173 errExit("getifaddrs"); 173 errExit("getifaddrs");
174 174
175 printf("%-17.17s%-19.19s%-17.17s%-17.17s%-6.6s\n", 175 fmessage("%-17.17s%-19.19s%-17.17s%-17.17s%-6.6s\n",
176 "Interface", "MAC", "IP", "Mask", "Status"); 176 "Interface", "MAC", "IP", "Mask", "Status");
177 // walk through the linked list 177 // walk through the linked list
178 for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) { 178 for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
@@ -208,7 +208,7 @@ void net_ifprint(int scan) {
208 sprintf(macstr, "%02x:%02x:%02x:%02x:%02x:%02x", PRINT_MAC(mac)); 208 sprintf(macstr, "%02x:%02x:%02x:%02x:%02x:%02x", PRINT_MAC(mac));
209 209
210 // print 210 // print
211 printf("%-17.17s%-19.19s%-17.17s%-17.17s%-6.6s\n", 211 fmessage("%-17.17s%-19.19s%-17.17s%-17.17s%-6.6s\n",
212 ifa->ifa_name, macstr, ipstr, maskstr, status); 212 ifa->ifa_name, macstr, ipstr, maskstr, status);
213 213
214 // network scanning 214 // network scanning