Better logging system

Use C++ magic to strip out debug logs at compile time
This commit is contained in:
topjohnwu
2020-06-01 04:15:37 -07:00
parent ad94f10205
commit 2f824f59dc
16 changed files with 118 additions and 138 deletions

View File

@@ -6,7 +6,6 @@
#include <logging.hpp>
#include <resetprop.hpp>
#include <utils.hpp>
#include <flags.h>
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include <_system_properties.h>
@@ -22,7 +21,7 @@ static int (*system_property_set)(const char*, const char*);
[[noreturn]] static void usage(char* arg0) {
fprintf(stderr,
NAME_WITH_VER(resetprop) R"EOF(" - System Props Modification Tool
R"EOF("resetprop - System Props Modification Tool
Usage: %s [flags] [options...]