vss-debug.h 629 B

12345678910111213141516171819202122232425
  1. /*
  2. * QEMU Guest Agent VSS debug declarations
  3. *
  4. * Copyright (C) 2023 Red Hat Inc
  5. *
  6. * Authors:
  7. * Konstantin Kostiuk <kkostiuk@redhat.com>
  8. *
  9. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  10. * See the COPYING file in the top-level directory.
  11. */
  12. #include "qemu/osdep.h"
  13. #include <vss-handles.h>
  14. #ifndef VSS_DEBUG_H
  15. #define VSS_DEBUG_H
  16. void qga_debug_internal(const char *funcname, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
  17. #define qga_debug(fmt, ...) qga_debug_internal(__func__, fmt, ## __VA_ARGS__)
  18. #define qga_debug_begin qga_debug("begin")
  19. #define qga_debug_end qga_debug("end")
  20. #endif