From a56d54138000fe6c60394a67a9873ea8eeb0e45a Mon Sep 17 00:00:00 2001 From: tarsin Date: Thu, 10 Nov 2022 15:28:06 +0800 Subject: [PATCH] fixup! Adjust madvise usage --- app/src/main/cpp/ehviewer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/ehviewer.h b/app/src/main/cpp/ehviewer.h index 9ede7020f..908a18d51 100644 --- a/app/src/main/cpp/ehviewer.h +++ b/app/src/main/cpp/ehviewer.h @@ -30,6 +30,6 @@ #define madvise_log_if_error(addr, len, advice) \ if (madvise(addr, len, advice)) \ - LOGE("%s%p%s%zu%s%s%s", "madvise addr:", addr, "len:", len, "with MADV_WILLNEED failed with error: ", strerror(errno), ", Ignored") + LOGE("%s%p%s%zu%s%d%s%s%s", "madvise addr:", addr, "len:", len, "with advice ", advice, " failed with error: ", strerror(errno), ", Ignored") #endif /* EHVIEWER_EHVIEWER_H */