mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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
|
#pragma once
|
||||||
# define LIBVIRT_VIRPROBE_H
|
|
||||||
|
|
||||||
# include "internal.h"
|
#include "internal.h"
|
||||||
# include "virlog.h"
|
#include "virlog.h"
|
||||||
|
|
||||||
# if WITH_DTRACE_PROBES
|
#if WITH_DTRACE_PROBES
|
||||||
# ifndef LIBVIRT_PROBES_H
|
# ifndef LIBVIRT_PROBES_H
|
||||||
# define LIBVIRT_PROBES_H
|
# define LIBVIRT_PROBES_H
|
||||||
# include "libvirt_probes.h"
|
# include "libvirt_probes.h"
|
||||||
@ -96,13 +95,11 @@
|
|||||||
PROBE_EXPAND(LIBVIRT_ ## NAME, \
|
PROBE_EXPAND(LIBVIRT_ ## NAME, \
|
||||||
VIR_ADD_CASTS(__VA_ARGS__)); \
|
VIR_ADD_CASTS(__VA_ARGS__)); \
|
||||||
}
|
}
|
||||||
# else
|
#else
|
||||||
# define PROBE(NAME, FMT, ...) \
|
# define PROBE(NAME, FMT, ...) \
|
||||||
VIR_INFO_INT(&virLogSelf, \
|
VIR_INFO_INT(&virLogSelf, \
|
||||||
__FILE__, __LINE__, __func__, \
|
__FILE__, __LINE__, __func__, \
|
||||||
#NAME ": " FMT, __VA_ARGS__);
|
#NAME ": " FMT, __VA_ARGS__);
|
||||||
|
|
||||||
# define PROBE_QUIET(NAME, FMT, ...)
|
# define PROBE_QUIET(NAME, FMT, ...)
|
||||||
# endif
|
#endif
|
||||||
|
|
||||||
#endif /* LIBVIRT_VIRPROBE_H */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user