add FILE argument to debug functions
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 2 May 2014 23:42:56 +0000 (16:42 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 16 May 2014 14:02:55 +0000 (16:02 +0200)
commit591a9d7985c1230652d9f7ea1f9221e8c66ec188
treeb040ceef0f3aa5905d814d7cf249af415a53891e
parentc738c6a644e5a07fa98ede668775c08ec5321273
add FILE argument to debug functions

The DPDK dump functions are useful for remote debugging of an
applications. But when application runs as a daemon, stdout
is typically routed to /dev/null.

Instead change all these functions to take a stdio FILE * handle
instead. An application can then use open_memstream() to capture
the output.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
[Thomas: fix quota_watermark example]
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
45 files changed:
app/dump_cfg/main.c
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c
app/test/commands.c
app/test/test_common.c
app/test/test_ivshmem.c
app/test/test_logs.c
app/test/test_malloc.c
app/test/test_mbuf.c
app/test/test_memory.c
app/test/test_mempool.c
app/test/test_mempool_perf.c
app/test/test_memzone.c
app/test/test_pci.c
app/test/test_ring.c
app/test/test_timer.c
examples/l2fwd-ivshmem/host/host.c
examples/quota_watermark/qwctl/commands.c
lib/librte_eal/common/eal_common_devargs.c
lib/librte_eal/common/eal_common_hexdump.c
lib/librte_eal/common/eal_common_log.c
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/common/eal_common_pci.c
lib/librte_eal/common/eal_common_tailqs.c
lib/librte_eal/common/include/rte_devargs.h
lib/librte_eal/common/include/rte_hexdump.h
lib/librte_eal/common/include/rte_log.h
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/common/include/rte_memzone.h
lib/librte_eal/common/include/rte_pci.h
lib/librte_eal/common/include/rte_tailq.h
lib/librte_eal/linuxapp/eal/eal_ivshmem.c
lib/librte_ivshmem/rte_ivshmem.c
lib/librte_ivshmem/rte_ivshmem.h
lib/librte_malloc/rte_malloc.c
lib/librte_malloc/rte_malloc.h
lib/librte_mbuf/rte_mbuf.c
lib/librte_mbuf/rte_mbuf.h
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h
lib/librte_ring/rte_ring.c
lib/librte_ring/rte_ring.h
lib/librte_timer/rte_timer.c
lib/librte_timer/rte_timer.h