Merge "Frameworks/base: Use Log.printlns in RuntimeInit" into nyc-dev

am: a2cc0c2ca2

* commit 'a2cc0c2ca282d9b4b8525df37bdb9e9cb0304abc':
  Frameworks/base: Use Log.printlns in RuntimeInit
This commit is contained in:
Andreas Gampe
2016-02-18 22:36:00 +00:00
committed by android-build-merger
2 changed files with 3 additions and 3 deletions

View File

@@ -377,8 +377,9 @@ public final class Log {
* Helper function for long messages. Uses the LineBreakBufferedWriter to break
* up long messages and stacktraces along newlines, but tries to write in large
* chunks. This is to avoid truncation.
* @hide
*/
private static int printlns(int bufID, int priority, String tag, String msg,
public static int printlns(int bufID, int priority, String tag, String msg,
Throwable tr) {
ImmediateLogWriter logWriter = new ImmediateLogWriter(bufID, priority, tag);
// Acceptable buffer size. Get the native buffer size, subtract two zero terminators,

View File

@@ -57,8 +57,7 @@ public class RuntimeInit {
private static final native void nativeSetExitWithoutCleanup(boolean exitWithoutCleanup);
private static int Clog_e(String tag, String msg, Throwable tr) {
return Log.println_native(Log.LOG_ID_CRASH, Log.ERROR, tag,
msg + '\n' + Log.getStackTraceString(tr));
return Log.printlns(Log.LOG_ID_CRASH, Log.ERROR, tag, msg, tr);
}
/**