diff options
author | David Cantrell <dcantrell@redhat.com> | 2007-04-27 20:24:19 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2007-04-27 20:24:19 +0000 |
commit | 62126e2c5a7d58d68c8c5dd985356b3fe65253b3 (patch) | |
tree | 0aea3cd78836d48ea4085ec3e3e3f1f62de3e201 /isys | |
parent | a42d5baeb856f7d153607a9394224a234419b7aa (diff) | |
download | anaconda-62126e2c5a7d58d68c8c5dd985356b3fe65253b3.tar.gz anaconda-62126e2c5a7d58d68c8c5dd985356b3fe65253b3.tar.xz anaconda-62126e2c5a7d58d68c8c5dd985356b3fe65253b3.zip |
* isys/isys.c (doDhcpNetDevice): Pass pumplogger to pumpDhcpClassRun()
so we can see error messages in the syslog.
* isys/isys.c: Add pumplogger() pass-through.
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/isys/isys.c b/isys/isys.c index 951d20893..25ee1f184 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -609,6 +609,10 @@ static PyObject * doConfigNetDevice(PyObject * s, PyObject * args) { return Py_None; } +void pumplogger(void *arg, int priority, char *fmt, va_list va) { + libdhcp_syslogger(0, priority, fmt, va); +} + static PyObject * doDhcpNetDevice(PyObject * s, PyObject * args) { char *device, *r, *ipv4method = NULL, *ipv6method = NULL, *dhcpclass = NULL; int useipv4, useipv6; @@ -652,7 +656,8 @@ static PyObject * doDhcpNetDevice(PyObject * s, PyObject * args) { pref |= DHCPv6_DISABLE_RESOLVER | DHCPv4_DISABLE_HOSTNAME_SET; if (!(pref & DHCPv4_DISABLE) || !(pref & DHCPv6_DISABLE)) { - r = pumpDhcpClassRun(&cfg, 0, dhcpclass, pref, 0, timeout, NULL, 0); + r = pumpDhcpClassRun(&cfg, 0, dhcpclass, pref, 0, timeout, + pumplogger, LOG_ERR); if (r) { Py_INCREF(Py_None); return Py_None; |