]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod/docs: document logging priority definitions
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Sep 2024 22:20:19 +0000 (23:20 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 6 Sep 2024 16:43:24 +0000 (11:43 -0500)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/94
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod.h

index 8d6be1d436d3bfa07fcfa7bad4560a4290dac586..0553f9f49acead98332749b0ee54506dda46f7c9 100644 (file)
@@ -190,8 +190,8 @@ int kmod_dump_index(struct kmod_ctx *ctx, enum kmod_index type, int fd);
  * @ctx: kmod library context
  * @priority: the new logging priority
  *
- * Set the current logging priority. The value controls which messages
- * are logged.
+ * Set the current logging priority, as defined in syslog.h(0P). The value
+ * controls which messages are logged.
  */
 void kmod_set_log_priority(struct kmod_ctx *ctx, int priority);
 
@@ -199,6 +199,8 @@ void kmod_set_log_priority(struct kmod_ctx *ctx, int priority);
  * kmod_get_log_priority:
  * @ctx: kmod library context
  *
+ * Get the current logging priority, as defined in syslog.h(0P).
+ *
  * Returns: the current logging priority
  */
 int kmod_get_log_priority(const struct kmod_ctx *ctx);