3333 *
3434 * Sets the default logging variables for the library.
3535 */
36- void nvme_init_logging (struct nvme_global_ctx * ctx , int lvl , bool log_pid , bool log_tstamp );
36+ void nvme_init_logging (struct nvme_global_ctx * ctx , int lvl ,
37+ bool log_pid , bool log_tstamp );
3738
3839/**
3940 * nvme_init_default_logging() - Initialize default (fallback) logging
@@ -45,7 +46,8 @@ void nvme_init_logging(struct nvme_global_ctx *ctx, int lvl, bool log_pid, bool
4546 * Sets the default logging settings for the library in case the root object
4647 * is absent.
4748 */
48- void nvme_init_default_logging (FILE * fp , int lvl , bool log_pid , bool log_tstamp );
49+ void nvme_init_default_logging (FILE * fp , int lvl , bool log_pid ,
50+ bool log_tstamp );
4951
5052/**
5153 * nvme_get_logging_level() - Get current logging level
@@ -59,40 +61,7 @@ void nvme_init_default_logging(FILE *fp, int lvl, bool log_pid, bool log_tstamp)
5961 *
6062 * Return: current log level value or DEFAULT_LOGLEVEL if not initialized.
6163 */
62- int nvme_get_logging_level (struct nvme_global_ctx * ctx , bool * log_pid , bool * log_tstamp );
63-
64- /**
65- * nvme_set_global_ctx() - Set global context
66- * @ctx: struct nvme_global_ctx object
67- *
68- * In order to be able to log from code paths where no global context
69- * object is passed in via the arguments use the the default one which
70- * can be set via this call. When creating a new global context object
71- * with @nvme_create_global_ctx the global context object will be set as
72- * well. This means the global context object is always pointing to the
73- * latest created global context object. Note the first
74- * @nvme_free_global_ctx call will reset the global context object.
75- *
76- * This function is deprecated. Use nvme_init_default_logging or/and
77- * nvme_init_logging instead.
78- */
79- void nvme_set_global_ctx (struct nvme_global_ctx * ctx ) __attribute__((deprecated ));
80-
81- /**
82- * nvme_set_debug - Set NVMe command debugging output
83- * @debug: true to enable or false to disable
84- *
85- * This function is deprecated. Use nvme_init_default_logging instead.
86- */
87- void nvme_set_debug (bool debug ) __attribute__((deprecated ));
88-
89- /**
90- * nvme_get_debug - Get NVMe command debugging output
91- *
92- * This function is deprecated. Use nvme_get_logging_level instead.
93- *
94- * Return: false if disabled or true if enabled.
95- */
96- bool nvme_get_debug (void ) __attribute__((deprecated ));
64+ int nvme_get_logging_level (struct nvme_global_ctx * ctx , bool * log_pid ,
65+ bool * log_tstamp );
9766
9867#endif /* _LOG_H */
0 commit comments