Message ID | 1423051213-20795-5-git-send-email-taras.kondratiuk@linaro.org |
---|---|
State | Superseded |
Headers | show |
On 4 February 2015 at 07:00, Taras Kondratiuk <taras.kondratiuk@linaro.org> wrote: > Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> > Reviewed-by: Mike Holmes <mike.holmes@linaro.org> Note for others, Warning form checkpatch is not relevant. > --- > include/odp/api/hints.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h > index a7aa90e..d6bf723 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) > -- > 1.9.1 > > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/lng-odp >
diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index a7aa90e..d6bf723 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)
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org> --- include/odp/api/hints.h | 5 +++++ 1 file changed, 5 insertions(+)