xref: /openbmc/qemu/qga/vss-win32/vss-debug.h (revision 53c7c924)
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 
13 #include "qemu/osdep.h"
14 #include <vss-handles.h>
15 
16 #ifndef VSS_DEBUG_H
17 #define VSS_DEBUG_H
18 
19 void qga_debug_internal(const char *funcname, const char *fmt, ...) G_GNUC_PRINTF(2, 3);
20 
21 #define qga_debug(fmt, ...) qga_debug_internal(__func__, fmt, ## __VA_ARGS__)
22 #define qga_debug_begin qga_debug("begin")
23 #define qga_debug_end qga_debug("end")
24 
25 #endif
26