mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-08-16 01:58:17 +03:00
firmware: Add talloc_report_buf() encode the allocation by bits
First byte encodes the amount of blocks. The following bytes encode a block as a single bit. Change-Id: I3a8ddbe4100f342db2c59ad1fb9aa0014efc62b8
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* minimalistic emulation of core talloc API functions used by msgb.c */
|
||||
|
||||
#define __TALLOC_STRING_LINE1__(s) #s
|
||||
@@ -37,3 +39,4 @@ void talloc_set_name_const(const void *ptr, const char *name);
|
||||
char *talloc_strdup(const void *t, const char *p);
|
||||
void *talloc_pool(const void *context, size_t size);
|
||||
void talloc_report(const void *ptr, FILE *f);
|
||||
unsigned int talloc_report_buf(uint8_t *buf, unsigned int buf_len);
|
||||
|
||||
Reference in New Issue
Block a user