From d3d7c31ca996d4d7eecbb1dafc549363bef6448e Mon Sep 17 00:00:00 2001
From: Keisuke Kuroyanagi <ksk@google.com>
Date: Thu, 31 Jul 2014 14:36:12 +0900
Subject: [PATCH] Fix native debug build.

Change-Id: I95ff6b14d7f444911ec76698381b8d2d8da94776
---
 .../dictionary/structure/v4/ver4_dict_buffers.cpp    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_dict_buffers.cpp b/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_dict_buffers.cpp
index 36ab9963a6..ac95403097 100644
--- a/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_dict_buffers.cpp
+++ b/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ver4_dict_buffers.cpp
@@ -118,7 +118,7 @@ bool Ver4DictBuffers::flushHeaderAndDictBuffers(const char *const dictDirPath,
     }
     FILE *const file = fdopen(fd, "wb");
     if (!file) {
-        AKLOGE("fdopen failed for the file %s. errno: %d", filePath, errno);
+        AKLOGE("fdopen failed for the file %s. errno: %d", bodyFilePath, errno);
         ASSERT(false);
         return false;
     }
@@ -146,27 +146,27 @@ bool Ver4DictBuffers::flushHeaderAndDictBuffers(const char *const dictDirPath,
 bool Ver4DictBuffers::flushDictBuffers(FILE *const file) const {
     // Write trie.
     if (!DictFileWritingUtils::writeBufferToFileTail(file, &mExpandableTrieBuffer)) {
-        AKLOGE("Trie cannot be written. %s", tmpDirPath);
+        AKLOGE("Trie cannot be written.");
         return false;
     }
     // Write terminal position lookup table.
     if (!mTerminalPositionLookupTable.flushToFile(file)) {
-        AKLOGE("Terminal position lookup table cannot be written. %s", tmpDirPath);
+        AKLOGE("Terminal position lookup table cannot be written.");
         return false;
     }
     // Write probability dict content.
     if (!mProbabilityDictContent.flushToFile(file)) {
-        AKLOGE("Probability dict content cannot be written. %s", tmpDirPath);
+        AKLOGE("Probability dict content cannot be written.");
         return false;
     }
     // Write bigram dict content.
     if (!mBigramDictContent.flushToFile(file)) {
-        AKLOGE("Bigram dict content cannot be written. %s", tmpDirPath);
+        AKLOGE("Bigram dict content cannot be written.");
         return false;
     }
     // Write shortcut dict content.
     if (!mShortcutDictContent.flushToFile(file)) {
-        AKLOGE("Shortcut dict content cannot be written. %s", tmpDirPath);
+        AKLOGE("Shortcut dict content cannot be written.");
         return false;
     }
     return true;
-- 
GitLab