DOKK / manpages / debian 11 / libopeniscsiusr-dev / iscsi_log_priority_str.3.en
iscsi_log_priority_str(3) iSCSI Userspace API - libopeniscsiusr Manual iscsi_log_priority_str(3)

iscsi_log_priority_str - Convert log priority to string.

const char * iscsi_log_priority_str (int priority);

int. Log priority.

Convert log priority to string (const char *).

const char *. Please don't free returned pointer. Valid string are:

* "ERROR" for LIBISCSI_LOG_PRIORITY_ERROR

* "WARN" for LIBISCSI_LOG_PRIORITY_WARNING

* "INFO" for LIBISCSI_LOG_PRIORITY_INFO

* "DEBUG" for LIBISCSI_LOG_PRIORITY_DEBUG

* "Invalid argument" for invalid log priority.

iscsi_log_priority_str May 2021