aboutsummaryrefslogtreecommitdiff
path: root/test/validation/api/stash
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2023-05-24 12:05:55 +0300
committerMatias Elo <matias.elo@nokia.com>2023-05-26 09:45:43 +0300
commitf1b6c6d6878608da82659d496e4d78b5cd275b1a (patch)
tree611b6f4a5e1df2d1603d472a2161b92f69b61d01 /test/validation/api/stash
parentf65eaefd7eaf6d9917d20963adb0d7832aeb2175 (diff)
validation: use ODPH_ERR() macro for error prints
Use ODPH_ERR() macro for all error prints in the validation tests and make error messages more consistent. The helper macro adds additional debug information (filename, line number, function name) to the error messages, which can help debugging. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'test/validation/api/stash')
-rw-r--r--test/validation/api/stash/stash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/validation/api/stash/stash.c b/test/validation/api/stash/stash.c
index fd4c04577..67c336a2f 100644
--- a/test/validation/api/stash/stash.c
+++ b/test/validation/api/stash/stash.c
@@ -5,6 +5,8 @@
*/
#include <odp_api.h>
+#include <odp/helper/odph_api.h>
+
#include "odp_cunit_common.h"
#include <string.h>
@@ -63,7 +65,7 @@ static int stash_suite_init(void)
odp_stash_capability_t *capa_fifo = &global.capa_fifo;
if (odp_stash_capability(capa_default, ODP_STASH_TYPE_DEFAULT)) {
- printf("stash capability failed for the default type\n");
+ ODPH_ERR("Stash capability failed for the default type\n");
return -1;
}