@@ -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 %"  PRId32  "  is null" 
35+         " Searching for key %.*s: NamedData at index %d  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 %"  PRId32 ,
50+           " Segment index %zu for key %.*s is out of range for segments size %u " 
5151          segment_index,
5252          static_cast <int >(key.size ()),
5353          key.data (),
@@ -74,16 +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 %" 
78-       " , received index %" 
77+       " Index out of range: named_data size is %u, received index %u" 
7978      named_data_->size (),
8079      index);
8180
8281  ET_CHECK_OR_RETURN_ERROR (
8382      named_data_->Get (index) != nullptr  &&
8483          named_data_->Get (index)->key () != nullptr ,
8584      InvalidArgument,
86-       " NamedData at index %"  PRId32  "  is null" 
85+       " NamedData at index %u  is null" 
8786      index);
8887  return  named_data_->Get (index)->key ()->c_str ();
8988}
0 commit comments