aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_timer_internal.h
diff options
context:
space:
mode:
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>2014-07-21 20:17:12 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2014-07-23 13:32:08 +0400
commite76f3c7e6f7c263ce7efadb26075bccfc6d35346 (patch)
tree04df3d4066507ea0d40bc4b44384d2266a254af9 /platform/linux-generic/include/odp_timer_internal.h
parentf0eedc78beb313a01c8ecbb0b4140fa75e00733f (diff)
debug: Replace ODP_ASSERT with ODP_STATIC_ASSERT
Replace ODP_ASSERT with ODP_STATIC_ASSERT and stringify error messages. Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> Reviewed-by: Anders Roxell <anders.roxell@linaro.org> Tested-by: Mike Holmes <mike.holmes@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_timer_internal.h')
-rw-r--r--platform/linux-generic/include/odp_timer_internal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h
index c6e3de667..ad28f534e 100644
--- a/platform/linux-generic/include/odp_timer_internal.h
+++ b/platform/linux-generic/include/odp_timer_internal.h
@@ -53,12 +53,12 @@ typedef struct odp_timeout_hdr_t {
-ODP_ASSERT(sizeof(odp_timeout_hdr_t) ==
+ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) ==
ODP_OFFSETOF(odp_timeout_hdr_t, buf_data),
- ODP_TIMEOUT_HDR_T__SIZE_ERR);
+ "ODP_TIMEOUT_HDR_T__SIZE_ERR");
-ODP_ASSERT(sizeof(odp_timeout_hdr_t) % sizeof(uint64_t) == 0,
- ODP_TIMEOUT_HDR_T__SIZE_ERR2);
+ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) % sizeof(uint64_t) == 0,
+ "ODP_TIMEOUT_HDR_T__SIZE_ERR2");
/**