Frank Filz has uploaded this change for review.
display_buffer improvements
Make some (char *) parameters (const char *) to allow more callers.
Add display_opaque_bytes_flags to allow control of how opaque bytes
are displayed. Options include whether it uses %02x or %02X, whether
it leads the string with "0x" and how it handles various issues with
the buffer passed (negative length, NULL pointer, 0 length).
Add an OPAQUE_BYTES_SIZE macro to compte the buffer size necessary
(note that if the "0x" lead is not used, the buffer size will be 2
bytes larger than necessary.
Change-Id: Ie09ce0252140b73d4026213369cbde8b89468031
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/MainNFSD/libganesha_nfsd.ver
M src/include/display.h
M src/log/display.c
3 files changed, 71 insertions(+), 14 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/95/458495/1
To view, visit change 458495. To unsubscribe, or for help writing mail filters, visit settings.