From: Zbigniew Jędrzejewski-Szmek Date: Wed, 5 May 2021 14:44:52 +0000 (+0200) Subject: fuzz-journald-kmsg: silence output as usual X-Git-Tag: v249-rc1~293^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ecb052fb3d851b8e11324b738d4c1fbe1b4ab0b;p=thirdparty%2Fsystemd.git fuzz-journald-kmsg: silence output as usual --- diff --git a/src/journal/fuzz-journald-kmsg.c b/src/journal/fuzz-journald-kmsg.c index 1b423d5cba2..ec22f14ccb1 100644 --- a/src/journal/fuzz-journald-kmsg.c +++ b/src/journal/fuzz-journald-kmsg.c @@ -10,6 +10,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { if (size == 0) return 0; + /* We don't want to fill the logs with assert warnings. + * Disable most logging if not running standalone */ + if (!getenv("SYSTEMD_LOG_LEVEL")) + log_set_max_level(LOG_CRIT); + dummy_server_init(&s, data, size); dev_kmsg_record(&s, s.buffer, size); server_done(&s);