Default to cmdline logging

This commit is contained in:
topjohnwu 2018-10-27 18:34:38 -04:00
parent f9e32a119a
commit 1046dd5eda
5 changed files with 1 additions and 4 deletions

View File

@ -100,7 +100,6 @@ static void usage() {
} }
int imgtool_main(int argc, char *argv[]) { int imgtool_main(int argc, char *argv[]) {
cmdline_logging();
if (argc < 2) if (argc < 2)
usage(); usage();
if (strcmp(argv[1], "create") == 0) { if (strcmp(argv[1], "create") == 0) {

View File

@ -114,7 +114,6 @@ void stop_magiskhide(int client) {
} }
int magiskhide_main(int argc, char *argv[]) { int magiskhide_main(int argc, char *argv[]) {
cmdline_logging();
if (argc < 2) { if (argc < 2) {
usage(argv[0]); usage(argv[0]);
} }

View File

@ -391,7 +391,6 @@ static void syntax_error_msg() {
} }
int magiskpolicy_main(int argc, char *argv[]) { int magiskpolicy_main(int argc, char *argv[]) {
cmdline_logging();
char *outfile = NULL, *tok, *saveptr; char *outfile = NULL, *tok, *saveptr;
int magisk = 0; int magisk = 0;
struct vector rules; struct vector rules;

View File

@ -28,6 +28,7 @@ int main(int argc, char *argv[]) {
umask(0); umask(0);
argv0 = argv[0]; argv0 = argv[0];
dload_selinux(); dload_selinux();
cmdline_logging();
if (strcmp(basename(argv0), "magisk.bin") == 0 || if (strcmp(basename(argv0), "magisk.bin") == 0 ||
(strcmp(basename(argv[0]), "magisk") == 0 (strcmp(basename(argv[0]), "magisk") == 0

View File

@ -297,7 +297,6 @@ static int verbose_logging(const char *fmt, va_list ap) {
} }
int resetprop_main(int argc, char *argv[]) { int resetprop_main(int argc, char *argv[]) {
cmdline_logging();
log_cb.d = verbose_logging; log_cb.d = verbose_logging;
int trigger = 1, persist = 0; int trigger = 1, persist = 0;