i40e: Fix i40e_print_features() VEB mode output
authorJoe Perches <joe@perches.com>
Thu, 3 Dec 2015 12:20:57 +0000 (04:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:47:36 +0000 (11:47 -0500)
commit3b195843f59b8aefdc15c689615745bf6758756c
tree9994c7e889d17b0c9bf904f2a667c84f6e04ed12
parent68e14a48fe70ed958d0d943c8f0c23112632c437
i40e: Fix i40e_print_features() VEB mode output

Commit 7fd89545f337 ("i40e: remove BUG_ON from feature string building")
added defective output when I40E_FLAG_VEB_MODE_ENABLED was set in
function i40e_print_features.

Fix it.

Miscellanea:

- Remove unnecessary string variable
- Add space before not after fixed strings
- Use kmalloc not kzalloc
- Don't initialize i to 0, use result of first snprintf

Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_main.c