diff options
author | Niklas | 2011-10-19 17:00:58 +0200 |
---|---|---|
committer | Niklas | 2011-10-19 17:00:58 +0200 |
commit | 54e31640362a7a995dd49f100eee9550d745e58f (patch) | |
tree | 04fbf5a34cf1d98c53a4a766da023e9f6843dcd6 /customdhcpcd/src/logwriter.c | |
parent | small changes in the networkmanager. added some ipv6 methods for adding a rou... (diff) | |
download | fbgui-54e31640362a7a995dd49f100eee9550d745e58f.tar.gz fbgui-54e31640362a7a995dd49f100eee9550d745e58f.tar.xz fbgui-54e31640362a7a995dd49f100eee9550d745e58f.zip |
put the NetworkDiscovery code into the src folder of the fbgui. made some test, building a usb stick iso and running it on a maschine. did some bug fixes
Diffstat (limited to 'customdhcpcd/src/logwriter.c')
-rw-r--r-- | customdhcpcd/src/logwriter.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/customdhcpcd/src/logwriter.c b/customdhcpcd/src/logwriter.c index d8c3537..e407bc2 100644 --- a/customdhcpcd/src/logwriter.c +++ b/customdhcpcd/src/logwriter.c @@ -83,7 +83,8 @@ void sendToQt(log_msg * msg) { ret = snprintf(outbuf, DHCP_MESSAGE_SIZE, tpl, msg->device, msg->status, msg->substatus, msg->msg); if (ret < 1) { - syslog(LOG_INFO, "[fbgui] ERROR filling message buffer"); + logger(LOG_INFO, "[fbgui] ERROR filling message buffer"); + //syslog(LOG_INFO, "[fbgui] ERROR filling message buffer"); return; } if (outbuf != NULL) { @@ -93,9 +94,12 @@ void sendToQt(log_msg * msg) { msg->status, msg->substatus, msg->msg, msg->device); if (n <= 0) { - syslog(LOG_ERR, "[fbgui] ERROR writing to socket: [%d:%d] %s (%s)", + logger(LOG_ERR, "[fbgui] ERROR writing to socket: [%d:%d] %s (%s)", msg->status, msg->substatus, msg->msg, msg->device); + //syslog(LOG_ERR, "[fbgui] ERROR writing to socket: [%d:%d] %s (%s)", + // msg->status, msg->substatus, msg->msg, msg->device); } + /* memset(ack, 0, ACK_SIZE); if ((t = recv(sockfd, ack, ACK_SIZE, 0)) > 0) { syslog(LOG_ERR, "[fbgui] recv ack echo> %s", ack); @@ -106,6 +110,7 @@ void sendToQt(log_msg * msg) { else syslog(LOG_ERR, "[fbgui] ERROR Server closed"); } + */ } void logToQt(int status, int substatus, const char * msg) { |