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:

committed by
Johan Wikman

parent
d0fd65be57
commit
a04843da9d
@ -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
|
||||
|
Reference in New Issue
Block a user