lib, traceevent: add PRINT_HEX_STR variant