eal: declare trace buffer at top of own block
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 01:59:32 +0000 (09:59 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:16 +0000 (22:45 +0200)
commite3908132b7903dbbf45c6d073792cccc890812e0
tree1a833d5f71ef564992a12fc3df89c8776be6bcb6
parentef3c7b50ff39a37a93ecea47481d392d8fcb2936
eal: declare trace buffer at top of own block

rte_dev.h:54:2:
warning: ISO C90 forbids mixed declarations and
code [-Wdeclaration-after-statement]
  char buffer[vsnprintf(NULL, 0, fmt, ap) + 1];

Fixes: b974e4a40cb5 ("ethdev: make error checking macros public")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/include/rte_dev.h