diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2022-07-29 16:30:28 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-08-04 14:18:05 +0200 |
commit | 823d4f6bc85c53eb9244dfe454c80a6e976a796f (patch) | |
tree | a9b8d0ee976f42c22607856c06679b4586388247 /include | |
parent | 050dc8fed2eff4a3d75381dd5cd149dd1de3f61a (diff) | |
download | openvswitch-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.h | 2 |
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 *); |