mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
util: virprobe.h: use #pragma once in headers
Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5f7b3e0f24
commit
e7bacd3db9
@ -19,13 +19,12 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LIBVIRT_VIRPROBE_H
|
||||
# define LIBVIRT_VIRPROBE_H
|
||||
#pragma once
|
||||
|
||||
# include "internal.h"
|
||||
# include "virlog.h"
|
||||
#include "internal.h"
|
||||
#include "virlog.h"
|
||||
|
||||
# if WITH_DTRACE_PROBES
|
||||
#if WITH_DTRACE_PROBES
|
||||
# ifndef LIBVIRT_PROBES_H
|
||||
# define LIBVIRT_PROBES_H
|
||||
# include "libvirt_probes.h"
|
||||
@ -96,13 +95,11 @@
|
||||
PROBE_EXPAND(LIBVIRT_ ## NAME, \
|
||||
VIR_ADD_CASTS(__VA_ARGS__)); \
|
||||
}
|
||||
# else
|
||||
#else
|
||||
# define PROBE(NAME, FMT, ...) \
|
||||
VIR_INFO_INT(&virLogSelf, \
|
||||
__FILE__, __LINE__, __func__, \
|
||||
#NAME ": " FMT, __VA_ARGS__);
|
||||
|
||||
# define PROBE_QUIET(NAME, FMT, ...)
|
||||
# endif
|
||||
|
||||
#endif /* LIBVIRT_VIRPROBE_H */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user