Commit 9ecd1c3d6cff05fcfd11517341cc22f61651ec3e

Authored by Claudio Fontana
Committed by David S. Miller
1 parent 815cccbf10

net/ipv4/ipconfig: add device address to a KERN_INFO message

adds a "hwaddr" to the "IP-Config: Complete" KERN_INFO message
with the dev_addr of the device selected for auto configuration.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

... ... @@ -1500,8 +1500,10 @@
1500 1500 * Clue in the operator.
1501 1501 */
1502 1502 pr_info("IP-Config: Complete:\n");
1503   - pr_info(" device=%s, addr=%pI4, mask=%pI4, gw=%pI4\n",
1504   - ic_dev->name, &ic_myaddr, &ic_netmask, &ic_gateway);
  1503 +
  1504 + pr_info(" device=%s, hwaddr=%*phC, ipaddr=%pI4, mask=%pI4, gw=%pI4\n",
  1505 + ic_dev->name, ic_dev->addr_len, ic_dev->dev_addr,
  1506 + &ic_myaddr, &ic_netmask, &ic_gateway);
1505 1507 pr_info(" host=%s, domain=%s, nis-domain=%s\n",
1506 1508 utsname()->nodename, ic_domain, utsname()->domainname);
1507 1509 pr_info(" bootserver=%pI4, rootserver=%pI4, rootpath=%s",