Skip to content

Commit

Permalink
[media] dvb: mantis: use '%pM' format to print MAC address
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Manu Abraham <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
andy-shev authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent d639609 commit 0e44dec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
5 changes: 1 addition & 4 deletions drivers/media/dvb/mantis/mantis_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ static int get_mac_address(struct mantis_pci *mantis)
return err;
}
dprintk(verbose, MANTIS_ERROR, 0,
" MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n",
mantis->mac_address[0], mantis->mac_address[1],
mantis->mac_address[2], mantis->mac_address[3],
mantis->mac_address[4], mantis->mac_address[5]);
" MAC Address=[%pM]\n", mantis->mac_address);

return 0;
}
Expand Down
9 changes: 1 addition & 8 deletions drivers/media/dvb/mantis/mantis_ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,7 @@ int mantis_get_mac(struct mantis_pci *mantis)
return err;
}

dprintk(MANTIS_ERROR, 0,
" MAC Address=[%02x:%02x:%02x:%02x:%02x:%02x]\n",
mac_addr[0],
mac_addr[1],
mac_addr[2],
mac_addr[3],
mac_addr[4],
mac_addr[5]);
dprintk(MANTIS_ERROR, 0, " MAC Address=[%pM]\n", mac_addr);

return 0;
}
Expand Down

0 comments on commit 0e44dec

Please sign in to comment.