diff options
author | Taras Kondratiuk <taras.kondratiuk@linaro.org> | 2015-02-24 12:27:51 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-25 16:23:31 +0300 |
commit | e2c4ad9678b247f84663eb6a4aca39f2e7174fb6 (patch) | |
tree | dbe95975dfd159698b48b094c9d958a2a1d137eb /include/odp | |
parent | 0bd60f3ac71fb963ae5f63ed1f3eba23fdece156 (diff) |
api: hints: add printf format attribute
The patch triggers checkpatch warning, but the warning is Linux kernel
specific and should be ignored.
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r-- | include/odp/api/hints.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index b7b060963..4211994cd 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -46,6 +46,11 @@ extern "C" { #define ODP_COLD_CODE __attribute__((__cold__)) /** + * Printf format attribute + */ +#define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) + +/** * Branch likely taken */ #define odp_likely(x) __builtin_expect((x), 1) |