mbox series

[v5,0/4] QGA VSS Logging

Message ID 20230710091439.1010553-1-kkostiuk@redhat.com
Headers show
Series QGA VSS Logging | expand

Message

Konstantin Kostiuk July 10, 2023, 9:14 a.m. UTC
Print all VSS error and trace to debugger and stderr.

v5 -> v4:
  Fix commit name according to function rename
  Fix function code style
  Remove extra \n from log
  Add missing log

v4: https://patchew.org/QEMU/20230710074639.996030-1-kkostiuk@redhat.com/

v4 -> v3:
  Use _countof instead of hardcoded array size
  Use fputs instead of fprintf without formating

v3: https://patchew.org/QEMU/20230707092258.768420-1-kkostiuk@redhat.com/

v3 -> v2:
  Reformat few log lines
  Move G_GNUC_PRINTF attribute to the declaration

v2: https://patchew.org/QEMU/20230707083105.746811-1-kkostiuk@redhat.com/

v2 -> v1:
  Rename debug macro
  Move log code to function

v1: https://patchew.org/QEMU/20230705141205.525776-1-kkostiuk@redhat.com/


Konstantin Kostiuk (4):
  QGA VSS: Add wrapper to send log to debugger and stderr
  QGA VSS: Replace 'fprintf(stderr' with qga_debug
  QGA VSS: Print error in err_set
  QGA VSS: Add log in functions begin/end

 qga/vss-win32/install.cpp   | 47 +++++++++++++++++++++++++++++-----
 qga/vss-win32/meson.build   |  2 +-
 qga/vss-win32/provider.cpp  |  3 +++
 qga/vss-win32/requester.cpp | 51 ++++++++++++++++++++++++++++++++-----
 qga/vss-win32/vss-debug.cpp | 39 ++++++++++++++++++++++++++++
 qga/vss-win32/vss-debug.h   | 25 ++++++++++++++++++
 6 files changed, 153 insertions(+), 14 deletions(-)
 create mode 100644 qga/vss-win32/vss-debug.cpp
 create mode 100644 qga/vss-win32/vss-debug.h

--
2.34.1