aboutsummaryrefslogtreecommitdiff
path: root/utils/ImageLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/ImageLoader.h')
-rw-r--r--utils/ImageLoader.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/ImageLoader.h b/utils/ImageLoader.h
index 5a2825ebc3..f37ffa2820 100644
--- a/utils/ImageLoader.h
+++ b/utils/ImageLoader.h
@@ -242,7 +242,7 @@ public:
}
catch(const std::ifstream::failure &e)
{
- ARM_COMPUTE_ERROR("Loading image file: %s", e.what());
+ ARM_COMPUTE_ERROR_VAR("Loading image file: %s", e.what());
}
}
/** Fill a tensor with 3 planes (one for each channel) with the content of the currently open image file.
@@ -344,7 +344,7 @@ public:
}
catch(const std::ifstream::failure &e)
{
- ARM_COMPUTE_ERROR("Loading image file: %s", e.what());
+ ARM_COMPUTE_ERROR_VAR("Loading image file: %s", e.what());
}
}
@@ -387,14 +387,14 @@ public:
unsigned int max_val = 0;
std::tie(_width, _height, max_val) = parse_ppm_header(_fs);
- ARM_COMPUTE_ERROR_ON_MSG(max_val >= 256, "2 bytes per colour channel not supported in file %s",
- filename.c_str());
+ ARM_COMPUTE_ERROR_ON_MSG_VAR(max_val >= 256, "2 bytes per colour channel not supported in file %s",
+ filename.c_str());
_feeder = support::cpp14::make_unique<FileImageFeeder>(_fs);
}
catch(std::runtime_error &e)
{
- ARM_COMPUTE_ERROR("Accessing %s: %s", filename.c_str(), e.what());
+ ARM_COMPUTE_ERROR_VAR("Accessing %s: %s", filename.c_str(), e.what());
}
}
void close() override
@@ -457,7 +457,7 @@ public:
uint8_t *rgb_image = stbi_load(filename.c_str(), &width, &height, &bpp, 3);
if(rgb_image == NULL)
{
- ARM_COMPUTE_ERROR("Accessing %s failed", filename.c_str());
+ ARM_COMPUTE_ERROR_VAR("Accessing %s failed", filename.c_str());
}
else
{