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:
Jonathon Jongsma 2019-06-18 11:12:56 -05:00 committed by Ján Tomko
parent 5f7b3e0f24
commit e7bacd3db9

View File

@ -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