docs: Add more references in libusb_option section
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
diff --git a/libusb/core.c b/libusb/core.c
index e28e77f..ffe33b7 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -2205,8 +2205,8 @@
}
/** \ingroup libusb_lib
- * Deprecated. Use libusb_set_option() or libusb_init_context() instead
- * using the \ref LIBUSB_OPTION_LOG_LEVEL option.
+ * Deprecated. Use libusb_set_option() or libusb_init_context() instead,
+ * with the \ref LIBUSB_OPTION_LOG_LEVEL option.
*/
void API_EXPORTED libusb_set_debug(libusb_context *ctx, int level)
{
diff --git a/libusb/libusb.h b/libusb/libusb.h
index 8a2deb7..f4e9203 100644
--- a/libusb/libusb.h
+++ b/libusb/libusb.h
@@ -1478,6 +1478,7 @@
enum libusb_option {
/** Set the log message verbosity.
*
+ * This option must be provided an argument of type \ref libusb_log_level.
* The default level is LIBUSB_LOG_LEVEL_NONE, which means no messages are ever
* printed. If you choose to increase the message verbosity level, ensure
* that your application does not close the stderr file descriptor.
@@ -1533,11 +1534,11 @@
/** Set the context log callback function.
*
* Set the log callback function either on a context or globally. This
- * option must be provided an argument of type libusb_log_cb. Using this
- * option with a NULL context is equivalent to calling libusb_set_log_cb
- * with mode LIBUSB_LOG_CB_GLOBAL. Using it with a non-NULL context is
- * equivalent to calling libusb_set_log_cb with mode
- * LIBUSB_LOG_CB_CONTEXT.
+ * option must be provided an argument of type \ref libusb_log_cb.
+ * Using this option with a NULL context is equivalent to calling
+ * libusb_set_log_cb() with mode \ref LIBUSB_LOG_CB_GLOBAL.
+ * Using it with a non-NULL context is equivalent to calling
+ * libusb_set_log_cb() with mode \ref LIBUSB_LOG_CB_CONTEXT.
*/
LIBUSB_OPTION_LOG_CB = 3,
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 60baa17..effab3c 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11876
+#define LIBUSB_NANO 11877