[libvirt] [PATCH] virlog: Modify virLogParseDefaultPriority's comment of return value

Wangrui (K) moon.wangrui at huawei.com
Mon Mar 17 12:31:55 UTC 2014


virLogParseDefaultPriority's successful return value is the same as
virLogSetDefaultPriority's successful return value. So it should be 0
rather than the parsed log level.

Signed-off-by: Zhou Yimin <zhouyimin at huawei.com>
---
src/util/virlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/virlog.c b/src/util/virlog.c
index 68af0f3..3d4edb8 100644
--- a/src/util/virlog.c
+++ b/src/util/virlog.c
@@ -1638,7 +1638,7 @@ virLogGetNbOutputs(void)
  *    3: WARNING
  *    4: ERROR
  *
- * Returns the parsed log level or -1 on error.
+ * Returns 0 if successful, -1 in case of error.
  */
int
virLogParseDefaultPriority(const char *priority)
--
1.7.12.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140317/6e926294/attachment-0001.htm>


More information about the libvir-list mailing list