[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH] Disable CONS debug logging
- To: "paul@xxxxxxx" <paul@xxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Martin Harvey <martin.harvey@xxxxxxxxxx>
- Date: Tue, 13 Jul 2021 08:55:05 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DDXu1Czbqi/duF6/8ouBdPTwxCLbZIZL5tklMgm9LzE=; b=CHR0EpvL+Z3gBopmkfO87HCSBil2nEJLVm9/y5tAMzJjfPEh+G4XNeqQyk+mA6D5Q0cd8VfRapgBKDQkGCQ3IbPXsEPafLijnK7xcGNZc1uGZE1JJQabhheWNeIZoqkM+uKRvZczHMpxQlBjfMf5y+/ufvr090CWzigYi5uaaq96Eq+zS2UMgLsKun1nyI0G+kGO5i7ckdFswmWjP7Lky8bwZsWK3OCPlCb2o7ijNqMslyjk8zbwIzV998z9LO3jckNjOpba1mg0I6zIzXxAnF0+GqRQkXf4/zZJzRmFNiHSUVqdbcHo777nfR0vD1+PVS2jDSaUTM2XFGtCpSli7A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kBr9IHFZ8rMg02P1tBc/wHzuaLosBTOngHiDm5wVej6Nzpqebu+6enLPpMRiXu9K4srzBVxXRJuQLOcyCQtRXWd18C4rE+jaTIpVZs8nTkXp62ACDxcJ7+sJc6KrZKnIVG73Fr5p9oBOIDQaHtNBQ00wveqnDi+VSXzufkc0wRxErgcoGZFUOI4C8++EDvNjQVM0ie8jL1dZOtlc6+EsvfE7nZnN5fVJQLf1NshuTU+ERJosHLHQCvVi2ggEKoN4uIwB53MAAJ2m/z52rhqSw1hwqvrkt5z9UAeRGxDiMSHBydeiCuKfE1adJosSebtNFUu6ZnkzdQ5aCh3FkkwZNg==
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Delivery-date: Tue, 13 Jul 2021 08:55:14 +0000
- Ironport-hdrordr: A9a23:GrJEB6nhrKwu1Dx96DqTmTNd8OnpDfLo3DAbv31ZSRFFG/Fw9/ rCoB17726QtN91YhsdcL+7V5VoLUmzyXcX2/hyAV7BZmnbUQKTRekP0WKL+Vbd8kbFh41gPM lbEpSXCLfLfCJHZcSR2njELz73quP3jJxBho3lvghQpRkBUdAF0+/gYDzranGfQmN9dP0EPa vZ3OVrjRy6d08aa8yqb0N1JNQq97Xw5fTbiQdtPW9f1DWz
- Ironport-sdr: B8e9EOIbFqZI5khzF5wmASwa/wVHQ2GCMwFrSHQIOrb8SP7AM6kjHPVS179Oe0jUkCaP87ViIN VkAS2R1UkFiva2gAgia6zxrpOfZcqM1Zr7886trRwq2hbtN2r7cU2oK8OUxgkKYT72eZFrAU+/ mJCX/LFqlW4nK9ZQWG6nck8t4AAxagu5iJUkhwUwDhZQ7s0Yd1YhAmDypR7CExbgSlieuTZ4lt KIKQZbujGlPqnuCG702QtCPWa9OLKF/zzmngxFyTcNAf/J7NCXNSkHHPo+doFScygvvPljXBvQ 9DA=
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
- Thread-index: AQHXcxGeIfXNO0rCZEWN6VpzK7eW7Ks/vHyAgADiqHA=
- Thread-topic: [PATCH] Disable CONS debug logging
I believe this was originally to prevent some spam filling up the log. Some
antivirus product / filter driver was sending some PnP query IRP down the
stack, which filled up the logs. Owen should be able to provide more info.
Agree with code in comments. Would something like this be better?
//Was INFO, WARNING, ERROR, CRITICAL until reduced
MH.
-----Original Message-----
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of
Paul Durrant
Sent: 12 July 2021 20:09
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH] Disable CONS debug logging
a) Why?
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
> ---
> src/xenbus/driver.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/xenbus/driver.c b/src/xenbus/driver.c index
> 1b621fa..f353a61 100644
> --- a/src/xenbus/driver.c
> +++ b/src/xenbus/driver.c
> @@ -58,10 +58,10 @@ typedef struct _XENBUS_DRIVER {
> static XENBUS_DRIVER Driver;
>
> #define XENBUS_DRIVER_TAG 'VIRD'
> -#define DEFAULT_CONSOLE_LOG_LEVEL (LOG_LEVEL_INFO | \
> - LOG_LEVEL_WARNING | \
> - LOG_LEVEL_ERROR | \
> - LOG_LEVEL_CRITICAL)
> +#define DEFAULT_CONSOLE_LOG_LEVEL 0 // (LOG_LEVEL_INFO | \
> + // LOG_LEVEL_WARNING | \
> + // LOG_LEVEL_ERROR | \
> + // LOG_LEVEL_CRITICAL)
b) Leaving code in comments like this is not something we want
If there is a reasonable justification for why we want no logging through the
console then ditch the comments.
Paul
>
> static FORCEINLINE PVOID
> __DriverAllocate(
>
|