summaryrefslogtreecommitdiff
path: root/examples/l2fwd-ivshmem
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2014-05-02 16:42:56 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-05-16 16:02:55 +0200
commit591a9d7985c1230652d9f7ea1f9221e8c66ec188 (patch)
treeb040ceef0f3aa5905d814d7cf249af415a53891e /examples/l2fwd-ivshmem
parentc738c6a644e5a07fa98ede668775c08ec5321273 (diff)
downloaddpdk-591a9d7985c1230652d9f7ea1f9221e8c66ec188.zip
dpdk-591a9d7985c1230652d9f7ea1f9221e8c66ec188.tar.gz
dpdk-591a9d7985c1230652d9f7ea1f9221e8c66ec188.tar.xz
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>
Diffstat (limited to 'examples/l2fwd-ivshmem')
-rw-r--r--examples/l2fwd-ivshmem/host/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-ivshmem/host/host.c b/examples/l2fwd-ivshmem/host/host.c
index 6aaa082..8aec774 100644
--- a/examples/l2fwd-ivshmem/host/host.c
+++ b/examples/l2fwd-ivshmem/host/host.c
@@ -243,7 +243,7 @@ generate_ivshmem_cmdline(const char *config_name)
if (print_to_file(cmdline, config_name) < 0)
return -1;
- rte_ivshmem_metadata_dump(config_name);
+ rte_ivshmem_metadata_dump(stdout, config_name);
return 0;
}