mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00: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
@ -36,11 +36,11 @@
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, NULL, __FUNCTION__, \
|
||||
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)
|
||||
|
||||
/**
|
||||
|
@ -30,11 +30,11 @@
|
||||
#define VIR_FROM_THIS VIR_FROM_NONE
|
||||
|
||||
#define virLibConnError(conn, error, info) \
|
||||
virReportErrorHelper(VIR_FROM_NONE, error, NULL, __FUNCTION__, \
|
||||
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…
x
Reference in New Issue
Block a user