out_android_callback ends with the line
__android_log_print(android_lvl(msg->lvl), tag, "%s", msg->msg_b);
When logging src locations, the buffer and relevant pointers in msg look something like this:
tag_b msg_b
| |
[TAG] [SRCLOC] [MESSAGE]
|
tag_e
tag is just the char* from tag_b to tag_e, so the src location doesn't get passed to __android_log_print.
A potential fix might be to add a char *src_b field to the zf_log_message struct, and have the callback use
__android_log_print(android_lvl(msg->lvl), tag, "%s", msg->src_b);
out_android_callbackends with the lineWhen logging src locations, the buffer and relevant pointers in
msglook something like this:tagis just thechar*fromtag_btotag_e, so the src location doesn't get passed to__android_log_print.A potential fix might be to add a
char *src_bfield to thezf_log_messagestruct, and have the callback use