]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Fix i40e_print_features() VEB mode output
authorJoe Perches <joe@perches.com>
Thu, 3 Dec 2015 12:20:57 +0000 (04:20 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:36:26 +0000 (08:36 -0800)
commit4da78b536e81fefd9b631a25cd4a1044cb25bbd6
treeec6a48f79a9ccd34d1efeb359c53c47a8cbe956f
parente5e5a11102e589f5c3116e6d07125fe094499606
i40e: Fix i40e_print_features() VEB mode output

Orabug: 22342532

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>
(cherry picked from commit 3b195843f59b8aefdc15c689615745bf6758756c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_main.c