Skip to content

Commit

Permalink
fix(libsinsp): use current formatting option in bytebuf
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Dellaluce <[email protected]>
Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
2 people authored and poiana committed May 10, 2024
1 parent 1434e4c commit 94ced5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion userspace/libsinsp/sinsp_filtercheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,11 @@ char* sinsp_filter_check::rawval_to_string(uint8_t* rawval,
return (char*)rawval;
case PT_BYTEBUF:
m_getpropertystr_storage.resize(STRPROPERTY_STORAGE_SIZE);
binary_buffer_to_string(m_getpropertystr_storage.data(), (const char*)rawval, (uint32_t) STRPROPERTY_STORAGE_SIZE - 1, len, sinsp_evt::PF_NORMAL);
binary_buffer_to_string(m_getpropertystr_storage.data(),
(const char*)rawval,
(uint32_t) STRPROPERTY_STORAGE_SIZE - 1,
len,
m_inspector->get_buffer_format());
return m_getpropertystr_storage.data();
case PT_SOCKADDR:
ASSERT(false);
Expand Down

0 comments on commit 94ced5c

Please sign in to comment.