chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use log "level" instead of "priority"
[elogind.git]
/
src
/
libudev
/
libudev.c
diff --git
a/src/libudev/libudev.c
b/src/libudev/libudev.c
index 846442765175186a6f1610e6df59ed298a6c9e4c..f4f285c6e0e6890f0cb137561f5ae248b5f4301a 100644
(file)
--- 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
* @udev: udev library context
*
* Retrieve stored data pointer from library context. This might be useful
- * to access from callbacks like a custom log
ging
function.
+ * to access from callbacks like a custom log function.
*
* Returns: stored userdata
**/
*
* Returns: stored userdata
**/
@@
-197,7
+197,7
@@
_public_ struct udev *udev_new(void)
prio = util_log_priority(val);
if (prio < 0)
prio = util_log_priority(val);
if (prio < 0)
- udev_err(udev, "/etc/udev/udev.conf:%u: invalid log
ging
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;
else
udev_set_log_priority(udev, prio);
continue;
@@
-212,7
+212,7
@@
_public_ struct udev *udev_new(void)
prio = util_log_priority(env);
if (prio < 0)
prio = util_log_priority(env);
if (prio < 0)
- udev_err(udev, "$UDEV_LOG specifies invalid log
ging
level '%s', ignoring.\n", env);
+ udev_err(udev, "$UDEV_LOG specifies invalid log level '%s', ignoring.\n", env);
else
udev_set_log_priority(udev, prio);
}
else
udev_set_log_priority(udev, prio);
}
@@
-260,11
+260,11
@@
_public_ struct udev *udev_unref(struct udev *udev)
/**
* udev_set_log_fn:
* @udev: udev library context
/**
* udev_set_log_fn:
* @udev: udev library context
- * @log_fn: function to be called for log
ging
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
*
* The built-in logging writes to stderr. It can be
* overridden by a custom function, to plug log messages
- * into the users' log
ging
functionality.
+ * into the users' log functionality.
*
**/
_public_ void udev_set_log_fn(struct udev *udev,
*
**/
_public_ void udev_set_log_fn(struct udev *udev,
@@
-273,17
+273,16
@@
_public_ void udev_set_log_fn(struct udev *udev,
const char *format, va_list args))
{
udev->log_fn = log_fn;
const char *format, va_list args))
{
udev->log_fn = log_fn;
- udev_dbg(udev, "custom log
ging
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
*
}
/**
* 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 log
ging priority
+ * Returns: the current log
level
**/
_public_ int udev_get_log_priority(struct udev *udev)
{
**/
_public_ int udev_get_log_priority(struct udev *udev)
{
@@
-293,10
+292,9
@@
_public_ int udev_get_log_priority(struct udev *udev)
/**
* udev_set_log_priority:
* @udev: udev library context
/**
* udev_set_log_priority:
* @udev: udev library context
- * @priority: the new log
ging
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)
{
**/
_public_ void udev_set_log_priority(struct udev *udev, int priority)
{