Both logging and calls to panic are never in the critical path.
Use the GCC attribute cold to mark these functions as cold,
which generates more optimised code.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Reviewed-by: Vincent Jardin <vincent.jardin@6wind.com>
* documentation.
*/
void __rte_panic(const char *funcname , const char *format, ...)
+ __attribute__((cold))
__attribute__((noreturn))
__attribute__((format(printf, 2, 3)));
* - Negative on error.
*/
int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
+ __attribute__((cold))
__attribute__((format(printf, 3, 4)));
/**