[libvirt] One line logging fix

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

 



I noticed that I was incorrectly logging a debug message as an error in a success path in the node device code. Here's the fix.

>From 0c65b2d1d90bf0d469ffe6d8a20a5566b359a61e Mon Sep 17 00:00:00 2001
From: David Allan <dallan@xxxxxxxxxx>
Date: Fri, 17 Jul 2009 09:57:40 -0400
Subject: [PATCH 1/1] Remove spurious log message

A success path in part of the node device code contained a log message with severity ERROR; this fix makes it DEBUG.
---
 src/node_device_hal_linux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/node_device_hal_linux.c b/src/node_device_hal_linux.c
index ddb1eef..a119404 100644
--- a/src/node_device_hal_linux.c
+++ b/src/node_device_hal_linux.c
@@ -50,7 +50,7 @@ static int open_wwn_file(const char *prefix,
 
     /* fd will be closed by caller */
     if ((*fd = open(wwn_path, O_RDONLY)) != -1) {
-        VIR_ERROR(_("Opened WWN path '%s' for reading"),
+        VIR_DEBUG(_("Opened WWN path '%s' for reading"),
                   wwn_path);
     } else {
         VIR_ERROR(_("Failed to open WWN path '%s' for reading"),
-- 
1.6.0.6

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]