Use PRIx64 macro for printing uint64_t values.
This is necessary to fix the build after merging upstream changes.
Change-Id: I8dffbcf8f2c46ff3dc50c1654b8b143ff023e34a
diff --git a/services/spd/trusty/shared-mem-smcall.c b/services/spd/trusty/shared-mem-smcall.c
index 854f60a..cc9f53e 100644
--- a/services/spd/trusty/shared-mem-smcall.c
+++ b/services/spd/trusty/shared-mem-smcall.c
@@ -7,6 +7,7 @@
#include <common/debug.h>
#include <common/runtime_svc.h>
#include <errno.h>
+#include <inttypes.h>
#include <lib/object_pool.h>
#include <lib/spinlock.h>
#include <lib/xlat_tables/xlat_tables_v2.h>
@@ -409,7 +410,7 @@
obj = trusty_shmem_obj_lookup(&trusty_shmem_obj_state, handle);
if (!obj) {
- NOTICE("%s: invalid handle, 0x%llx, not a valid handle\n",
+ NOTICE("%s: invalid handle, 0x%" PRIx64 ", not a valid handle\n",
__func__, handle);
return -ENOENT;
}
@@ -509,7 +510,7 @@
}
if (req->emad_count && req->tag != obj->desc.tag) {
- NOTICE("%s: wrong tag 0x%llx != 0x%llx\n",
+ NOTICE("%s: wrong tag 0x%" PRIx64 " != 0x%" PRIx64 "\n",
__func__, req->tag, obj->desc.tag);
return -EINVAL;
}
@@ -581,7 +582,7 @@
obj = trusty_shmem_obj_lookup(&trusty_shmem_obj_state, handle);
if (!obj) {
- NOTICE("%s: invalid handle, 0x%llx, not a valid handle\n",
+ NOTICE("%s: invalid handle, 0x%" PRIx64 ", not a valid handle\n",
__func__, handle);
return -ENOENT;
}