Add function for logging buffer contents as hex

The gwbuf_hexdump write the contents of the buffer into the info log. This
is quite helpful for debugging of protocol related problems.
This commit is contained in:
Markus Mäkelä
2017-10-10 07:11:37 +03:00
committed by Johan Wikman
parent d0fd65be57
commit a04843da9d
2 changed files with 60 additions and 0 deletions

View File

@ -414,4 +414,11 @@ void *gwbuf_get_buffer_object_data(GWBUF* buf, bufobj_id_t id);
extern void dprintAllBuffers(void *pdcb);
#endif
/**
* Debug function for dumping buffer contents to INFO log
*
* @param buffer Buffer to dump
*/
void gwbuf_hexdump(GWBUF* buffer);
MXS_END_DECLS