diff mbox

[PATCHv2,1/3] api: hints: add printf format attribute

Message ID 1424773673-10840-2-git-send-email-taras.kondratiuk@linaro.org
State Accepted
Commit e2c4ad9678b247f84663eb6a4aca39f2e7174fb6
Headers show

Commit Message

Taras Kondratiuk Feb. 24, 2015, 10:27 a.m. UTC
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>
---
 include/odp/api/hints.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h
index b7b0609..4211994 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)