There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
33 lines
664 B
C
33 lines
664 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright 2021 Mellanox Technologies, Ltd
|
|
*/
|
|
|
|
#ifndef EAL_LOG_H
|
|
#define EAL_LOG_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
/*
|
|
* Initialize the default log stream.
|
|
*/
|
|
int eal_log_init(const char *id, int facility);
|
|
|
|
/*
|
|
* Determine where log data is written when no call to rte_openlog_stream.
|
|
*/
|
|
void eal_log_set_default(FILE *default_log);
|
|
|
|
/*
|
|
* Save a log option for later.
|
|
*/
|
|
int eal_log_save_regexp(const char *regexp, uint32_t level);
|
|
int eal_log_save_pattern(const char *pattern, uint32_t level);
|
|
|
|
/*
|
|
* Convert log level to string.
|
|
*/
|
|
const char *eal_log_level2str(uint32_t level);
|
|
|
|
#endif /* EAL_LOG_H */
|