Skip to content

Commit 913e122

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix formatting data types in executorch/runtime/executor/tensor_parser_aten.cpp (#2497)
Summary: Pull Request resolved: #2497 Required for LLVM-17 Reviewed By: palmje Differential Revision: D54837765 fbshipit-source-id: ea0720ca7b245cc5e8835eafdc17015112b4d016
1 parent 579ccce commit 913e122

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime/executor/tensor_parser_aten.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ Result<at::Tensor> parseTensor(
106106
Result<void*> data_ptr = getTensorDataPtr(
107107
s_tensor, program, tensor.nbytes(), memory_manager->planned_memory());
108108
if (!data_ptr.ok()) {
109-
ET_LOG(Error, "getTensorDataPtr() failed: 0x%" PRIx32, data_ptr.error());
109+
ET_LOG(
110+
Error,
111+
"getTensorDataPtr() failed: 0x%" PRIx32,
112+
static_cast<uint32_t>(data_ptr.error()));
110113
return data_ptr.error();
111114
}
112115
tensor.unsafeGetTensorImpl()->unsafe_storage().set_data_ptr(

0 commit comments

Comments
 (0)