diff options
-rw-r--r-- | man/udev.conf.xml | 2 | ||||
-rw-r--r-- | man/udevd.xml | 4 | ||||
-rw-r--r-- | src/libudev/libudev.c | 20 |
3 files changed, 12 insertions, 14 deletions
diff --git a/man/udev.conf.xml b/man/udev.conf.xml index 93bec3494a..9c1e9d9157 100644 --- a/man/udev.conf.xml +++ b/man/udev.conf.xml @@ -69,7 +69,7 @@ <term><varname>udev_log</varname></term> <listitem> - <para>The logging priority. Valid values are the numerical + <para>The log level. Valid values are the numerical syslog priorities or their textual representations: <option>err</option>, <option>info</option> and <option>debug</option>.</para> diff --git a/man/udevd.xml b/man/udevd.xml index 46727e4deb..de670cb578 100644 --- a/man/udevd.xml +++ b/man/udevd.xml @@ -118,7 +118,7 @@ <varlistentry> <term><varname>$UDEV_LOG=</varname></term> <listitem> - <para>Set the logging priority.</para> + <para>Set the log level.</para> </listitem> </varlistentry> </variablelist> @@ -132,7 +132,7 @@ <term><varname>udev.log-priority=</varname></term> <term><varname>rd.udev.log-priority=</varname></term> <listitem> - <para>Set the logging priority.</para> + <para>Set the log level.</para> </listitem> </varlistentry> <varlistentry> diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c index 5d3ad50411..2c18c7e801 100644 --- a/src/libudev/libudev.c +++ b/src/libudev/libudev.c @@ -79,7 +79,7 @@ static void log_stderr(struct udev *udev, * @udev: udev library context * * Retrieve stored data pointer from library context. This might be useful - * to access from callbacks like a custom logging function. + * to access from callbacks like a custom log function. * * Returns: stored userdata **/ @@ -196,7 +196,7 @@ _public_ struct udev *udev_new(void) prio = util_log_priority(val); if (prio < 0) - udev_err(udev, "/etc/udev/udev.conf:%u: invalid logging level '%s', ignoring.\n", line_nr, val); + udev_err(udev, "/etc/udev/udev.conf:%u: invalid log level '%s', ignoring.\n", line_nr, val); else udev_set_log_priority(udev, prio); continue; @@ -247,11 +247,11 @@ _public_ struct udev *udev_unref(struct udev *udev) /** * udev_set_log_fn: * @udev: udev library context - * @log_fn: function to be called for logging messages + * @log_fn: function to be called for log messages * * The built-in logging writes to stderr. It can be * overridden by a custom function, to plug log messages - * into the users' logging functionality. + * into the users' log functionality. * **/ _public_ void udev_set_log_fn(struct udev *udev, @@ -260,17 +260,16 @@ _public_ void udev_set_log_fn(struct udev *udev, const char *format, va_list args)) { udev->log_fn = log_fn; - udev_dbg(udev, "custom logging function %p registered\n", log_fn); + udev_dbg(udev, "custom log function %p registered\n", log_fn); } /** * udev_get_log_priority: * @udev: udev library context * - * The initial logging priority is read from the udev config file - * at startup. + * The initial log level is read from the udev config file at startup. * - * Returns: the current logging priority + * Returns: the current log level **/ _public_ int udev_get_log_priority(struct udev *udev) { @@ -280,10 +279,9 @@ _public_ int udev_get_log_priority(struct udev *udev) /** * udev_set_log_priority: * @udev: udev library context - * @priority: the new logging priority + * @priority: the new log priority * - * Set the current logging priority. The value controls which messages - * are logged. + * Set the log level. This value controls which messages are logged. **/ _public_ void udev_set_log_priority(struct udev *udev, int priority) { |