summaryrefslogtreecommitdiff
path: root/src/udev/scsi_id
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-02-23 03:16:44 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-07 22:49:12 -0400
commitb237a168dfb981bdd9bcfe7a1002be7eb1b8da72 (patch)
treeabdb4c6bcce49c3d000c895550ea9a2e23682111 /src/udev/scsi_id
parent5c72049f91b82c8edb64840343df41329f81c7f6 (diff)
downloadsystemd-b237a168dfb981bdd9bcfe7a1002be7eb1b8da72.tar.gz
systemd-b237a168dfb981bdd9bcfe7a1002be7eb1b8da72.tar.bz2
systemd-b237a168dfb981bdd9bcfe7a1002be7eb1b8da72.zip
Rip out setting of the log level from udev_new and put it in a new function
This function is internal to systemd code, so external users of libudev will not see those log messages. I think this is better. If we want to allow that, the function could be put in libudev and exported. v2: check that the string is more than one char before stripping quotes
Diffstat (limited to 'src/udev/scsi_id')
-rw-r--r--src/udev/scsi_id/scsi_id.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/scsi_id/scsi_id.c b/src/udev/scsi_id/scsi_id.c
index eba382a82d..3c3d7a6b33 100644
--- a/src/udev/scsi_id/scsi_id.c
+++ b/src/udev/scsi_id/scsi_id.c
@@ -577,6 +577,8 @@ int main(int argc, char **argv)
int newargc;
char **newargv = NULL;
+ log_set_target(LOG_TARGET_AUTO);
+ udev_parse_config();
log_parse_environment();
log_open();