@@ -101,7 +101,7 @@ class BackendDelegate final {
101
101
if (!handle.ok ()) {
102
102
ET_LOG (
103
103
Error,
104
- " Init failed for backend %s: %" PRIu32 ,
104
+ " Init failed for backend %s: 0x %" PRIx32 ,
105
105
backend_id,
106
106
static_cast <uint32_t >(handle.error ()));
107
107
out->segment_ .Free ();
@@ -341,7 +341,7 @@ Error Method::parse_values() {
341
341
if (!t.ok ()) {
342
342
ET_LOG (
343
343
Error,
344
- " Failed parsing tensor at index %zu: %" PRIu32 ,
344
+ " Failed parsing tensor at index %zu: 0x %" PRIx32 ,
345
345
i,
346
346
static_cast <uint32_t >(t.error ()));
347
347
return t.error ();
@@ -358,7 +358,7 @@ Error Method::parse_values() {
358
358
if (!tensors.ok ()) {
359
359
ET_LOG (
360
360
Error,
361
- " Failed parsing tensor list at index %zu: %" PRIu32 ,
361
+ " Failed parsing tensor list at index %zu: 0x %" PRIx32 ,
362
362
i,
363
363
static_cast <uint32_t >(tensors.error ()));
364
364
return tensors.error ();
@@ -375,7 +375,7 @@ Error Method::parse_values() {
375
375
if (!tensors.ok ()) {
376
376
ET_LOG (
377
377
Error,
378
- " Failed parsing optional tensor list at index %zu: %" PRIu32 ,
378
+ " Failed parsing optional tensor list at index %zu: 0x %" PRIx32 ,
379
379
i,
380
380
static_cast <uint32_t >(tensors.error ()));
381
381
return tensors.error ();
@@ -687,17 +687,18 @@ Method::set_input(const EValue& input_evalue, size_t input_idx) {
687
687
ET_CHECK_OR_RETURN_ERROR (
688
688
e.isTensor () || e.isScalar (),
689
689
InvalidArgument,
690
- " The %zu-th input in method is expected Tensor or prim, but received %u " ,
690
+ " The %zu-th input in method is expected Tensor or prim, but received %" PRIu32 ,
691
691
input_idx,
692
692
static_cast <uint32_t >(e.tag ));
693
693
694
694
ET_CHECK_OR_RETURN_ERROR (
695
695
e.tag == input_evalue.tag ,
696
696
InvalidArgument,
697
- " The %zu-th input of method should have the same type as the input_evalue, but get tag %u and tag %u" ,
697
+ " The %zu-th input of method should have the same type as the input_evalue, but get tag %" PRIu32
698
+ " and tag %" PRIu32,
698
699
input_idx,
699
700
static_cast <uint32_t >(e.tag ),
700
- ( unsigned int ) input_evalue.tag );
701
+ static_cast < uint32_t >( input_evalue.tag ) );
701
702
702
703
if (e.isTensor ()) {
703
704
const auto & t_dst = e.toTensor ();
@@ -959,7 +960,7 @@ Error Method::execute_instruction() {
959
960
if (err != Error::Ok) {
960
961
ET_LOG (
961
962
Error,
962
- " CALL_DELEGATE execute failed at instruction %zu: %" PRIu32 ,
963
+ " CALL_DELEGATE execute failed at instruction %zu: 0x %" PRIx32 ,
963
964
step_state_.instr_idx ,
964
965
static_cast <uint32_t >(err));
965
966
return err;
0 commit comments