• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


コミットメタ情報

リビジョンa30a5b073be2573f5349b6f9186294e7c0ff377f (tree)
日時2011-08-04 17:36:35
作者Chih-Wei Huang <cwhuang@linu...>
コミッターChih-Wei Huang

ログメッセージ

init: set debug.logcat according to DEBUG variable

Change-Id: If869965474a9ae68957cb9ee4e67866ad43e9bb6

変更サマリ

差分

--- a/init/init.c
+++ b/init/init.c
@@ -582,6 +582,7 @@ static int console_init_action(int nargs, char **args)
582582 static int set_init_properties_action(int nargs, char **args)
583583 {
584584 char tmp[PROP_VALUE_MAX];
585+ char *tmpdev;
585586
586587 if (qemu[0])
587588 import_kernel_cmdline(1);
@@ -602,6 +603,9 @@ static int set_init_properties_action(int nargs, char **args)
602603 property_set("ro.hardware", hardware);
603604 snprintf(tmp, PROP_VALUE_MAX, "%d", revision);
604605 property_set("ro.revision", tmp);
606+ if ((tmpdev = getenv("DEBUG")) && *tmpdev)
607+ property_set("debug.logcat", tmpdev);
608+
605609 return 0;
606610 }
607611