datapath: fix drvinfo strings set in drivers
authorJiri Pirko <jiri@resnulli.us>
Fri, 15 Mar 2013 00:36:37 +0000 (17:36 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 15 Mar 2013 00:36:37 +0000 (17:36 -0700)
commitc58a0a6b329100b258e43c79aa4ea10f962bc47e
tree0eec839bf3be8890dd7fb485e1f96604183dbc4d
parent79416011612541d103a1d396d888bb8c84eb1da4
datapath: fix drvinfo strings set in drivers

Use strlcpy where possible to ensure the string is \0 terminated.
Use always sizeof(string) instead of 32, ETHTOOL_BUSINFO_LEN
and custom defines.
Use snprintf instead of sprint.
Remove unnecessary inits of ->fw_version
Remove unnecessary inits of drvinfo struct.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/vport-internal_dev.c