@@ -59,7 +59,9 @@ int main(int argc, char** argv) {
59
59
const char * model_path = FLAGS_model_path.c_str ();
60
60
Result<FileDataLoader> loader = FileDataLoader::from (model_path);
61
61
ET_CHECK_MSG (
62
- loader.ok (), " FileDataLoader::from() failed: 0x%" PRIx32, loader.error ());
62
+ loader.ok (),
63
+ " FileDataLoader::from() failed: 0x%" PRIx32,
64
+ (uint32_t )loader.error ());
63
65
64
66
// Parse the program file. This is immutable, and can also be reused between
65
67
// multiple execution invocations across multiple threads.
@@ -83,9 +85,9 @@ int main(int argc, char** argv) {
83
85
Result<MethodMeta> method_meta = program->method_meta (method_name);
84
86
ET_CHECK_MSG (
85
87
method_meta.ok (),
86
- " Failed to get method_meta for %s: 0x%x " ,
88
+ " Failed to get method_meta for %s: 0x%" PRIx32 ,
87
89
method_name,
88
- (unsigned int )method_meta.error ());
90
+ (uint32_t )method_meta.error ());
89
91
90
92
//
91
93
// The runtime does not use malloc/new; it allocates all memory using the
@@ -146,7 +148,7 @@ int main(int argc, char** argv) {
146
148
method.ok (),
147
149
" Loading of method %s failed with status 0x%" PRIx32,
148
150
method_name,
149
- method.error ());
151
+ ( uint32_t ) method.error ());
150
152
ET_LOG (Info, " Method loaded." );
151
153
152
154
// Prepare the inputs.
@@ -160,7 +162,7 @@ int main(int argc, char** argv) {
160
162
status == Error::Ok,
161
163
" Execution of method %s failed with status 0x%" PRIx32,
162
164
method_name,
163
- status);
165
+ ( uint32_t ) status);
164
166
ET_LOG (Info, " Model executed successfully." );
165
167
166
168
// Print the outputs.
0 commit comments