chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libudev: device - read database only when needed
[elogind.git]
/
udev
/
udevadm-control.c
diff --git
a/udev/udevadm-control.c
b/udev/udevadm-control.c
index 12b1e45f236ef8728996879a5404f688eebb85d5..baffd0d2044ce55d71e7c90b9820d29301828e7f 100644
(file)
--- a/
udev/udevadm-control.c
+++ b/
udev/udevadm-control.c
@@
-12,8
+12,6
@@
* GNU General Public License for more details.
*/
* GNU General Public License for more details.
*/
-#include "config.h"
-
#include <time.h>
#include <errno.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <stdio.h>
@@
-91,12
+89,12
@@
int udevadm_control(struct udev *udev, int argc, char *argv[])
switch (option) {
case 'l':
case 'l' + 256:
switch (option) {
case 'l':
case 'l' + 256:
- i = log_priority(optarg);
+ i =
util_
log_priority(optarg);
if (i < 0) {
fprintf(stderr, "invalid number '%s'\n", optarg);
goto exit;
}
if (i < 0) {
fprintf(stderr, "invalid number '%s'\n", optarg);
goto exit;
}
- udev_ctrl_send_set_log_level(uctrl, log_priority(optarg));
+ udev_ctrl_send_set_log_level(uctrl,
util_
log_priority(optarg));
rc = 0;
break;
case 's':
rc = 0;
break;
case 's':
@@
-151,7
+149,7
@@
int udevadm_control(struct udev *udev, int argc, char *argv[])
"this will stop working in a future release\n");
if (!strncmp(arg, "log_priority=", strlen("log_priority="))) {
"this will stop working in a future release\n");
if (!strncmp(arg, "log_priority=", strlen("log_priority="))) {
- udev_ctrl_send_set_log_level(uctrl, log_priority(&arg[strlen("log_priority=")]));
+ udev_ctrl_send_set_log_level(uctrl,
util_
log_priority(&arg[strlen("log_priority=")]));
rc = 0;
goto exit;
} else if (!strcmp(arg, "stop_exec_queue")) {
rc = 0;
goto exit;
} else if (!strcmp(arg, "stop_exec_queue")) {