commit | 08d470bf08ce94f9e9860a7ba8ce2903502f093a | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Mon Aug 13 14:22:56 2018 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Aug 13 14:24:33 2018 -0700 |
tree | a471de13c7a2fa9f776b1915dfbc0b2f44374bf2 | |
parent | 3b984c7efe00d72df699a439e422fe81178b9a58 [diff] [blame] |
Replace (unsigned) short with (u)int16_t. Bug: 112478838 Test: build with WITH_TIDY=1 Change-Id: I4b81e6287e72bce2d3cb67cacd6220d064818852
diff --git a/logd/LogKlog.cpp b/logd/LogKlog.cpp index ab980ac..e4393a3 100644 --- a/logd/LogKlog.cpp +++ b/logd/LogKlog.cpp
@@ -821,8 +821,7 @@ } // Log message - int rc = logbuf->log(LOG_ID_KERNEL, now, uid, pid, tid, newstr, - (unsigned short)n); + int rc = logbuf->log(LOG_ID_KERNEL, now, uid, pid, tid, newstr, (uint16_t)n); // notify readers if (rc > 0) {