summaryrefslogtreecommitdiffstats
path: root/src/nvme/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvme/log.h')
-rw-r--r--src/nvme/log.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/nvme/log.h b/src/nvme/log.h
index 7c345f6..cd243ea 100644
--- a/src/nvme/log.h
+++ b/src/nvme/log.h
@@ -36,6 +36,20 @@
void nvme_init_logging(nvme_root_t r, int lvl, bool log_pid, bool log_tstamp);
/**
+ * nvme_get_logging_level() - Get current logging level
+ * @r: nvme_root_t context
+ * @log_pid: Pointer to store a current value of logging of
+ * the PID flag at (optional).
+ * @log_tstamp: Pointer to store a current value of logging of
+ * the timestamp flag at (optional).
+ *
+ * Retrieves current values of logging variables.
+ *
+ * Return: current log level value or DEFAULT_LOGLEVEL if not initialized.
+ */
+int nvme_get_logging_level(nvme_root_t r, bool *log_pid, bool *log_tstamp);
+
+/**
* nvme_set_root() - Set nvme_root_t context
* @r: nvme_root_t context
*
@@ -48,4 +62,21 @@ void nvme_init_logging(nvme_root_t r, int lvl, bool log_pid, bool log_tstamp);
*/
void nvme_set_root(nvme_root_t r);
+/**
+ * nvme_set_debug - Set NVMe command debugging output
+ * @debug: true to enable or false to disable
+ *
+ * Don't use it, it's debricated.
+ */
+void nvme_set_debug(bool debug);
+
+/**
+ * nvme_get_debug - Get NVMe command debugging output
+ *
+ * Don't use it, it's debricated.
+ *
+ * Return: false if disabled or true if enabled.
+ */
+bool nvme_get_debug(void);
+
#endif /* _LOG_H */