cbe9ea52d0
Some users of SPDK API, such as OCF, may want to generate logs with arguments themselves. In that case they would need to first create a buffer and then pass that buffer as a single argument to spdk_log(). This change adds spdk_vlog() which accepts va_list as argument list, so it is easier to use spdk_log(). Change-Id: Ie2a3ac481035a250fcd68d0f9b8292008ebb6fe0 Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1946 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
28 lines
475 B
Plaintext
28 lines
475 B
Plaintext
{
|
|
global:
|
|
|
|
# public functions
|
|
spdk_log_open;
|
|
spdk_log_close;
|
|
spdk_log_set_level;
|
|
spdk_log_get_level;
|
|
spdk_log_set_backtrace_level;
|
|
spdk_log_get_backtrace_level;
|
|
spdk_log_set_print_level;
|
|
spdk_log_get_print_level;
|
|
spdk_log;
|
|
spdk_vlog;
|
|
spdk_log_dump;
|
|
spdk_log_get_flag;
|
|
spdk_log_set_flag;
|
|
spdk_log_clear_flag;
|
|
spdk_log_usage;
|
|
|
|
# functions used by other SPDK libraries
|
|
spdk_log_register_flag;
|
|
spdk_log_get_first_flag;
|
|
spdk_log_get_next_flag;
|
|
|
|
local: *;
|
|
};
|