Remove log output from xdelta3

This commit is contained in:
Boris Timofeev 2017-01-22 20:27:17 +03:00
parent 71a863cbbe
commit 2141253cd9
2 changed files with 1 additions and 5 deletions

View file

@ -1,4 +1,2 @@
cmake_minimum_required(VERSION 3.4.1)
add_library( xdelta3 SHARED src/main/cpp/xdelta3.c )
find_library( log-lib log )
target_link_libraries( xdelta3 ${log-lib} )
add_library( xdelta3 SHARED src/main/cpp/xdelta3.c )

View file

@ -23,7 +23,6 @@ along with UniPatcher. If not, see <http://www.gnu.org/licenses/>.
#include <jni.h>
#include <stdio.h>
#include <string.h>
#include <android/log.h>
#define SIZEOF_SIZE_T 4
#define SIZEOF_UNSIGNED_LONG_LONG 8
@ -146,7 +145,6 @@ int apply(FILE *patch, FILE *in, FILE *out) {
goto process;
default:
__android_log_print(ANDROID_LOG_ERROR, "XDelta3", "Error %d: %s", ret, stream.msg);
if (stream.msg != NULL) {
if (strcmp(stream.msg, "target window checksum mismatch") == 0)
return ERR_WRONG_CHECKSUM;