log: change spdk_trace_dump() to take a void *

Previously, spdk_trace_dump() took a const uint8_t * as the buffer, but
it is more flexible to allow any type to be passed (we are just going to
interpret it as an array of bytes anyway).

Change-Id: I1750316928cd330ed461bb513ff8af37e0170ef3
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/382854
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2017-10-17 10:47:25 -07:00 committed by Jim Harris
parent 450e2b88c7
commit 31521306a5
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ enum spdk_log_level spdk_log_get_print_level(void);
void spdk_log(enum spdk_log_level level, const char *file, const int line, const char *func,
const char *format, ...) __attribute__((__format__(__printf__, 5, 6)));
void spdk_trace_dump(FILE *fp, const char *label, const uint8_t *buf, size_t len);
void spdk_trace_dump(FILE *fp, const char *label, const void *buf, size_t len);
bool spdk_log_get_trace_flag(const char *flag);
int spdk_log_set_trace_flag(const char *flag);

View File

@ -166,7 +166,7 @@ fdump(FILE *fp, const char *label, const uint8_t *buf, size_t len)
}
void
spdk_trace_dump(FILE *fp, const char *label, const uint8_t *buf, size_t len)
spdk_trace_dump(FILE *fp, const char *label, const void *buf, size_t len)
{
fdump(fp, label, buf, len);
}