Loading init/log.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ static void init_klog_vwrite(int level, const char* fmt, va_list ap) { static const char* tag = basename(getprogname()); if (level > klog_get_level()) return; // The kernel's printk buffer is only 1024 bytes. // TODO: should we automatically break up long lines into multiple lines? // Or we could log but with something like "..." at the end? Loading libcutils/klog.c +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ void klog_writev(int level, const struct iovec* iov, int iov_count) { } void klog_write(int level, const char* fmt, ...) { if (level > klog_level) return; char buf[LOG_BUF_MAX]; va_list ap; va_start(ap, fmt); Loading Loading
init/log.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ static void init_klog_vwrite(int level, const char* fmt, va_list ap) { static const char* tag = basename(getprogname()); if (level > klog_get_level()) return; // The kernel's printk buffer is only 1024 bytes. // TODO: should we automatically break up long lines into multiple lines? // Or we could log but with something like "..." at the end? Loading
libcutils/klog.c +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ void klog_writev(int level, const struct iovec* iov, int iov_count) { } void klog_write(int level, const char* fmt, ...) { if (level > klog_level) return; char buf[LOG_BUF_MAX]; va_list ap; va_start(ap, fmt); Loading