diff options
author | Ola Liljedahl <ola.liljedahl@linaro.org> | 2014-11-24 23:38:44 +0100 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2014-11-25 18:24:03 +0300 |
commit | 490537f1fd91b93b85c43f798dd57afe61f44b55 (patch) | |
tree | 967a6f4695d59f77caf749761ec683c0a15be191 /platform/linux-generic | |
parent | 7c71d2979476c2762a446c0a71731637efd6d0b8 (diff) |
linux-generic: odp_buffer.c use odp_atomic.h
Signed-off-by: Ola Liljedahl <ola.liljedahl@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic')
-rw-r--r-- | platform/linux-generic/odp_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linux-generic/odp_buffer.c b/platform/linux-generic/odp_buffer.c index d9e211b8d..bcbb99ac8 100644 --- a/platform/linux-generic/odp_buffer.c +++ b/platform/linux-generic/odp_buffer.c @@ -73,7 +73,8 @@ int odp_buffer_snprint(char *str, size_t n, odp_buffer_t buf) len += snprintf(&str[len], n-len, " cur_offset %zu\n", hdr->cur_offset); len += snprintf(&str[len], n-len, - " ref_count %i\n", hdr->ref_count); + " ref_count %i\n", + odp_atomic_load_u32(&hdr->ref_count)); len += snprintf(&str[len], n-len, " type %i\n", hdr->type); len += snprintf(&str[len], n-len, |