@@ -32,7 +32,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
3232 ET_CHECK_OR_RETURN_ERROR (
3333 named_data_->Get (i) != nullptr && named_data_->Get (i)->key () != nullptr ,
3434 InvalidArgument,
35- " Searching for key %.*s: NamedData at index %d is null" ,
35+ " Searching for key %.*s: NamedData at index %" PRId32 " is null" ,
3636 static_cast <int >(key.size ()),
3737 key.data (),
3838 i);
@@ -47,7 +47,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
4747 ET_CHECK_OR_RETURN_ERROR (
4848 segment_index < segments_->size (),
4949 InvalidArgument,
50- " Segment index %zu for key %.*s is out of range for segments size %u " ,
50+ " Segment index %zu for key %.*s is out of range for segments size %" PRId32 ,
5151 segment_index,
5252 static_cast <int >(key.size ()),
5353 key.data (),
@@ -74,15 +74,15 @@ ET_NODISCARD executorch::runtime::Result<const char*> PteDataMap::get_key(
7474 ET_CHECK_OR_RETURN_ERROR (
7575 index < named_data_->size (),
7676 InvalidArgument,
77- " Index out of range: named_data size is %u , received index %u " ,
77+ " Index out of range: named_data size is %" PRId32 " , received index %" PRId32 ,
7878 named_data_->size (),
7979 index);
8080
8181 ET_CHECK_OR_RETURN_ERROR (
8282 named_data_->Get (index) != nullptr &&
8383 named_data_->Get (index)->key () != nullptr ,
8484 InvalidArgument,
85- " NamedData at index %u is null" ,
85+ " NamedData at index %" PRId32 " is null" ,
8686 index);
8787 return named_data_->Get (index)->key ()->c_str ();
8888}
0 commit comments