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
add FILE argument to debug functions
[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
ca7a6d2
..
3d44ded
100644
(file)
--- a/
lib/librte_eal/common/include/rte_log.h
+++ b/
lib/librte_eal/common/include/rte_log.h
@@
-173,9
+173,12
@@
int rte_log_cur_msg_logtype(void);
void rte_log_set_history(int enable);
/**
void rte_log_set_history(int enable);
/**
- * Dump the log history to the console.
+ * Dump the log history to a file
+ *
+ * @param f
+ * A pointer to a file for output
*/
*/
-void rte_log_dump_history(
void
);
+void rte_log_dump_history(
FILE *f
);
/**
* Add a log message to the history.
/**
* Add a log message to the history.
@@
-219,7
+222,11
@@
int rte_log_add_in_history(const char *buf, size_t size);
* - Negative on error.
*/
int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
* - Negative on error.
*/
int rte_log(uint32_t level, uint32_t logtype, const char *format, ...)
+#ifdef __GNUC__
+#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2))
__attribute__((cold))
__attribute__((cold))
+#endif
+#endif
__attribute__((format(printf, 3, 4)));
/**
__attribute__((format(printf, 3, 4)));
/**