From 32155b63d2985b69f5255d48e5b278e547f5f939 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 24 Mar 2021 15:34:31 +0800 Subject: use PRIx64 to fix compilation warning --- examples/uinotification/uinotification.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/uinotification/uinotification.cpp') diff --git a/examples/uinotification/uinotification.cpp b/examples/uinotification/uinotification.cpp index 91e9b458..f498db4c 100644 --- a/examples/uinotification/uinotification.cpp +++ b/examples/uinotification/uinotification.cpp @@ -1,3 +1,4 @@ +#include "inttypes.h" #include "uinotification.h" #include "filecontext.h" #include "viewframe.h" @@ -87,7 +88,7 @@ void NotificationListener::OnViewChange(UIContext* context, ViewFrame* frame, co void NotificationListener::OnAddressChange(UIContext* context, ViewFrame* frame, View* view, const ViewLocation& location) { - LogInfo("OnAddressChange: %llx", location.getOffset()); + LogInfo("OnAddressChange: 0x%" PRIx64, location.getOffset()); } -- cgit v1.3.1