system/core
Revision | a30a5b073be2573f5349b6f9186294e7c0ff377f (tree) |
---|---|
Zeit | 2011-08-04 17:36:35 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init: set debug.logcat according to DEBUG variable
Change-Id: If869965474a9ae68957cb9ee4e67866ad43e9bb6
@@ -582,6 +582,7 @@ static int console_init_action(int nargs, char **args) | ||
582 | 582 | static int set_init_properties_action(int nargs, char **args) |
583 | 583 | { |
584 | 584 | char tmp[PROP_VALUE_MAX]; |
585 | + char *tmpdev; | |
585 | 586 | |
586 | 587 | if (qemu[0]) |
587 | 588 | import_kernel_cmdline(1); |
@@ -602,6 +603,9 @@ static int set_init_properties_action(int nargs, char **args) | ||
602 | 603 | property_set("ro.hardware", hardware); |
603 | 604 | snprintf(tmp, PROP_VALUE_MAX, "%d", revision); |
604 | 605 | property_set("ro.revision", tmp); |
606 | + if ((tmpdev = getenv("DEBUG")) && *tmpdev) | |
607 | + property_set("debug.logcat", tmpdev); | |
608 | + | |
605 | 609 | return 0; |
606 | 610 | } |
607 | 611 |