Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b24e212 authored by chenbruce's avatar chenbruce Committed by Bruce Chen
Browse files

[Resolver-log]: Some modifications for debug logging

 - Remove stdio.h from all files now that we're no longer using printf() etc
 - Use std::string to buffer the output and android::base::StringAppendF() to write into it.

Test: Test: make; flash; runtests.sh
Change-Id: Iea268dbf3e799c04b0812926ca8e381be213c9b4
parent 5471dca0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@
#include <fcntl.h>
#include <netdb.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
+0 −1
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@
#include <netinet/in.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
+0 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@
#include <netinet/in.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@
#define NETD_RESOLV_HOSTENT_H

#include <netdb.h>
#include <stdio.h>

struct getnamaddr {
    struct hostent* hp;
+0 −1
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@

#include <resolv.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
Loading