qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v2 2/4] QGA VSS: Replace 'fprintf(stderr' with PRINT_DEBUG


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 2/4] QGA VSS: Replace 'fprintf(stderr' with PRINT_DEBUG
Date: Fri, 7 Jul 2023 10:35:46 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 7/7/23 10:31, Konstantin Kostiuk wrote:
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
---
  qga/vss-win32/install.cpp   | 13 +++++++------
  qga/vss-win32/requester.cpp |  9 +++++----
  2 files changed, 12 insertions(+), 10 deletions(-)


@@ -304,9 +305,9 @@ STDAPI COMRegister(void)
      }
      strcpy(tlbPath, dllPath);
      strcpy(tlbPath+n-3, "tlb");
-    fprintf(stderr, "Registering " QGA_PROVIDER_NAME ":\n");
-    fprintf(stderr, "  %s\n", dllPath);
-    fprintf(stderr, "  %s\n", tlbPath);
+    qga_debug("Registering " QGA_PROVIDER_NAME ":");
+    qga_debug("  %s", dllPath);
+    qga_debug("  %s", tlbPath);

What about:

       qga_debug("Registering " QGA_PROVIDER_NAME ":  %s  %s",
                 dllPath, tlbPath);

      if (!PathFileExists(tlbPath)) {
          hr = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND);
          errmsg(hr, "Failed to lookup tlb");
@@ -517,7 +518,7 @@ namespace _com_util
          }
if (mbstowcs(bstr, ascii, len) == (size_t)-1) {
-            fprintf(stderr, "Failed to convert string '%s' into BSTR", ascii);
+            qga_debug("Failed to convert string '%s' into BSTR", ascii);
              bstr[0] = 0;
          }
          return bstr;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]