Skip to content

Commit

Permalink
Merge pull request uavorg#467 from xxxllluuu/master
Browse files Browse the repository at this point in the history
SystemStarter log print NetCardName
  • Loading branch information
zengli00 committed Dec 28, 2018
2 parents 241a606 + 14706a7 commit 8fa7762
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,15 @@ private void checkNetworkReady() {

isReady = true;

StringBuffer ipmsg = new StringBuffer("List NetCardIndex and IP Address:");
StringBuffer ipmsg = new StringBuffer("List NetCardIndex NetCardName and IP Address:");

int index = 0;

for (InetAddress addr : NetworkHelper.getAllIP()) {

ipmsg.append("\n").append(index++).append(" ----- ").append(addr.getHostAddress());
String ip = addr.getHostAddress();

ipmsg.append("\n").append(index++).append(" ----- ").append(NetworkHelper.getNetCardName(ip)).append(" ----- ").append(ip);
}

log.info(this, ipmsg.toString());
Expand Down

0 comments on commit 8fa7762

Please sign in to comment.