summaryrefslogtreecommitdiff
path: root/src/udev/ata_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/ata_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/ata_id')
-rw-r--r--src/udev/ata_id/ata_id.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c
index 1e414664ce..ad152b9d31 100644
--- a/src/udev/ata_id/ata_id.c
+++ b/src/udev/ata_id/ata_id.c
@@ -427,6 +427,8 @@ int main(int argc, char *argv[])
{}
};
+ log_set_target(LOG_TARGET_AUTO);
+ udev_parse_config();
log_parse_environment();
log_open();