Merge "PdfEditor: define LOG_TAG"
This commit is contained in:
@@ -13,6 +13,15 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
#define LOG_TAG "PdfEditor"
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include <android/log.h>
|
||||||
|
#include <utils/Log.h>
|
||||||
|
|
||||||
#include "jni.h"
|
#include "jni.h"
|
||||||
#include "JNIHelp.h"
|
#include "JNIHelp.h"
|
||||||
@@ -29,11 +38,6 @@
|
|||||||
#include "SkMatrix.h"
|
#include "SkMatrix.h"
|
||||||
|
|
||||||
#include <core_jni_helpers.h>
|
#include <core_jni_helpers.h>
|
||||||
#include <vector>
|
|
||||||
#include <utils/Log.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
namespace android {
|
namespace android {
|
||||||
|
|
||||||
@@ -142,8 +146,7 @@ static bool writeAllBytes(const int fd, const void* buffer, const size_t byteCou
|
|||||||
if (errno == EINTR) {
|
if (errno == EINTR) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
__android_log_print(ANDROID_LOG_ERROR, LOG_TAG,
|
ALOGE("Error writing to buffer: %d", errno);
|
||||||
"Error writing to buffer: %d", errno);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
remainingBytes -= writtenByteCount;
|
remainingBytes -= writtenByteCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user