summaryrefslogtreecommitdiff
path: root/examples/uinotification
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2021-03-24 15:34:31 +0800
committerXusheng <xusheng@vector35.com>2021-03-24 17:37:10 +0800
commit32155b63d2985b69f5255d48e5b278e547f5f939 (patch)
tree9462aa0ede9c9945514ac3667e81e8a70d8b9e86 /examples/uinotification
parent66747df8fff706aee000d3860a92db36450d52b1 (diff)
use PRIx64 to fix compilation warning
Diffstat (limited to 'examples/uinotification')
-rw-r--r--examples/uinotification/uinotification.cpp3
1 files changed, 2 insertions, 1 deletions
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());
}