1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <stdarg.h>
#include <stdio.h>
int
__android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap)
{
int ret = printf("(%d) %s :: ", prio, tag);
ret += vprintf(fmt, ap);
ret += (puts("") != EOF);
return ret;
}
int
__android_log_print(int prio, const char *tag, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
int ret = __android_log_vprint(prio, tag, fmt, ap);
va_end(ap);
return ret;
}
int
__android_log_write(int prio, const char *tag, const char *text)
{
return __android_log_print(prio, tag, "%s", text);
}
|