[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Disable CONS debug logging


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Mon, 12 Jul 2021 20:08:35 +0100
  • Delivery-date: Mon, 12 Jul 2021 19:08:38 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 07/07/2021 09:54, Martin Harvey wrote:
From: Owen Smith <owen.smith@xxxxxxxxxx>


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(





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.