]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: remove error log from stubs of virNetlinkEventServiceStart|Stop
authorLaine Stump <laine@laine.org>
Thu, 3 May 2012 15:52:17 +0000 (11:52 -0400)
committerLaine Stump <laine@laine.org>
Fri, 4 May 2012 20:51:11 +0000 (16:51 -0400)
These two functions are called from main() on all platforms, and
always return success on platforms that don't support libnl. They
still log an error message, though, which doesn't make sense - they
should just be NOPs on those platforms. (Per a suggestion during
review, I've turned the logs into debug messages rather than removing
them completely).

src/util/virnetlink.c

index e609494ffcca8f973a0a51f8a2f7810a9e2d67c2..25a39f193ae0a403deea3670991abdee047f7eeb 100644 (file)
@@ -561,7 +561,7 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
  */
 int virNetlinkEventServiceStop(void)
 {
-    netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
+    VIR_DEBUG("%s", _(unsupported));
     return 0;
 }
 
@@ -571,7 +571,7 @@ int virNetlinkEventServiceStop(void)
  */
 int virNetlinkEventServiceStart(void)
 {
-    netlinkError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
+    VIR_DEBUG("%s", _(unsupported));
     return 0;
 }