diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-14 21:11:31 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-14 21:17:14 +0100 |
commit | 29bfbcd675d750c0af4d7dae217722932249e435 (patch) | |
tree | 333eebd589a7106ae35ad0278e1652402ca85ec3 /src/shared/util.h | |
parent | edb2935c5c5b95c42b8679086f60da5eafad74cb (diff) |
util: add hexdump() call to create pretty hexdumps of data
This is very useful when debugging sd-bus to look at messages.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index e99f8d1123..c596d795d3 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -914,3 +914,5 @@ const char *personality_to_string(unsigned long); uint64_t physical_memory(void); char* mount_test_option(const char *haystack, const char *needle); + +void hexdump(FILE *f, const void *p, size_t s); |