mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
Ensure LXC/QEMU APIs set the filename for errors
The virLibConnError macros in libvirt-lxc.c and libvirt-qemu.c were passing NULL for the filename. This causes a crash if the logging code is configured to use journald. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
311eae8257
commit
cb3868f701
@ -35,12 +35,12 @@
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, NULL, __FUNCTION__, \
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, __FILE__, __FUNCTION__, \
|
||||
__LINE__, info)
|
||||
|
||||
#define virLibDomainError(domain, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_DOM, error, NULL, __FUNCTION__, \
|
||||
virReportErrorHelper(VIR_FROM_DOM, error, __FILE__, __FUNCTION__, \
|
||||
__LINE__, info)
|
||||
|
||||
/**
|
||||
|
@ -29,12 +29,12 @@
|
||||
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, NULL, __FUNCTION__, \
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, __FILE__, __FUNCTION__, \
|
||||
__LINE__, info)
|
||||
|
||||
#define virLibDomainError(domain, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_DOM, error, NULL, __FUNCTION__, \
|
||||
virReportErrorHelper(VIR_FROM_DOM, error, __FILE__, __FUNCTION__, \
|
||||
__LINE__, info)
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user