diff options
author | Konstantin Kostiuk <kkostiuk@redhat.com> | 2023-07-10 12:14:37 +0300 |
---|---|---|
committer | Konstantin Kostiuk <kkostiuk@redhat.com> | 2023-07-10 15:54:40 +0300 |
commit | 2f84cf699460f1182402b250064d12d4ab32ef4d (patch) | |
tree | 4203ae42a5a04ad5d0fb93a96ef58fd3a9c7d4bd /qga/vss-win32/install.cpp | |
parent | 925d05d38a2bc76b5a49359370650a820bc891da (diff) | |
download | qemu-2f84cf699460f1182402b250064d12d4ab32ef4d.zip qemu-2f84cf699460f1182402b250064d12d4ab32ef4d.tar.gz qemu-2f84cf699460f1182402b250064d12d4ab32ef4d.tar.bz2 |
QGA VSS: Replace 'fprintf(stderr' with qga_debug
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'qga/vss-win32/install.cpp')
-rw-r--r-- | qga/vss-win32/install.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qga/vss-win32/install.cpp b/qga/vss-win32/install.cpp index ff93b08..e03473d 100644 --- a/qga/vss-win32/install.cpp +++ b/qga/vss-win32/install.cpp @@ -13,6 +13,7 @@ #include "qemu/osdep.h" #include "vss-common.h" +#include "vss-debug.h" #ifdef HAVE_VSS_SDK #include <vscoordint.h> #else @@ -54,7 +55,7 @@ void errmsg(DWORD err, const char *text) FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (char *)&msg, 0, NULL); - fprintf(stderr, "%.*s. (Error: %lx) %s\n", len, text, err, msg); + qga_debug("%.*s. (Error: %lx) %s", len, text, err, msg); LocalFree(msg); } @@ -219,7 +220,7 @@ static HRESULT QGAProviderRemove(ICatalogCollection *coll, int i, void *arg) { HRESULT hr; - fprintf(stderr, "Removing COM+ Application: %s\n", QGA_PROVIDER_NAME); + qga_debug("Removing COM+ Application: %s", QGA_PROVIDER_NAME); chk(coll->Remove(i)); out: return hr; @@ -304,9 +305,8 @@ 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 ": %s %s", + dllPath, tlbPath); if (!PathFileExists(tlbPath)) { hr = HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND); errmsg(hr, "Failed to lookup tlb"); @@ -517,7 +517,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; |