summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2022-07-29 16:30:28 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-08-04 14:18:05 +0200
commit823d4f6bc85c53eb9244dfe454c80a6e976a796f (patch)
treea9b8d0ee976f42c22607856c06679b4586388247 /include
parent050dc8fed2eff4a3d75381dd5cd149dd1de3f61a (diff)
downloadopenvswitch-823d4f6bc85c53eb9244dfe454c80a6e976a796f.tar.gz
dynamic-string: Add function for a sparse hex dump.
New function to dump large and sparsely populated data structures like struct flow. Reviewed-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/dynamic-string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openvswitch/dynamic-string.h b/include/openvswitch/dynamic-string.h
index ee1821710..1c262b049 100644
--- a/include/openvswitch/dynamic-string.h
+++ b/include/openvswitch/dynamic-string.h
@@ -61,6 +61,8 @@ void ds_put_printable(struct ds *, const char *, size_t);
void ds_put_hex(struct ds *ds, const void *buf, size_t size);
void ds_put_hex_dump(struct ds *ds, const void *buf_, size_t size,
uintptr_t ofs, bool ascii);
+void ds_put_sparse_hex_dump(struct ds *ds, const void *buf_, size_t size,
+ uintptr_t ofs, bool ascii);
int ds_get_line(struct ds *, FILE *);
int ds_get_preprocessed_line(struct ds *, FILE *, int *line_number);
int ds_get_test_line(struct ds *, FILE *);