git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal: introduce portable format attribute
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_log.h
diff --git
a/lib/librte_eal/common/include/rte_log.h
b/lib/librte_eal/common/include/rte_log.h
index
1bb0e66
..
a0d1f48
100644
(file)
--- a/
lib/librte_eal/common/include/rte_log.h
+++ b/
lib/librte_eal/common/include/rte_log.h
@@
-282,7
+282,7
@@
int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
__attribute__((cold))
#endif
#endif
__attribute__((cold))
#endif
#endif
- __
attribute__((format(printf, 3, 4))
);
+ __
rte_format_printf(3, 4
);
/**
* Generates a log message.
/**
* Generates a log message.
@@
-311,7
+311,7
@@
int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
* - Negative on error.
*/
int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
* - Negative on error.
*/
int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)
- __
attribute__((format(printf,3,0))
);
+ __
rte_format_printf(3, 0
);
/**
* Generates a log message.
/**
* Generates a log message.