better itap err msgs

dev
Tom Early 5 years ago
parent ca2e792d1d
commit 7e3947438e

@ -90,7 +90,7 @@ bool CQnetDB::Init()
return false;
}
static int countcallback(void *count, int /*argc*/, char **argv, char **/*azColName*/)
static int countcallback(void *count, int /*argc*/, char **argv, char ** /*azColName*/)
{
auto c = (int *)count;
*c = atoi(argv[0]);
@ -265,7 +265,7 @@ bool CQnetDB::UpdateGW(CHostQueue &hqueue)
return true;
}
while (! hqueue.Empty())
while (!hqueue.Empty())
{
auto h = hqueue.Pop();
UpdateGW(h.name.c_str(), h.addr.c_str(), h.port);

@ -45,7 +45,7 @@
#include "QnetConfigure.h"
#include "Timer.h"
#define ITAP_VERSION "QnetITAP-526"
#define ITAP_VERSION "QnetITAP-825"
CQnetITAP::CQnetITAP(int mod)
: assigned_module(mod)
@ -435,7 +435,7 @@ int CQnetITAP::SendTo(const unsigned char *buf)
{
if (EAGAIN != errno)
{
printf("Error %d writing to dvap, message=%s\n", errno, strerror(errno));
printf("Error %d writing to %s: %s\n", errno, ITAP_DEVICE.c_str(), strerror(errno));
return -1;
}
}
@ -451,7 +451,7 @@ int CQnetITAP::SendTo(const unsigned char *buf)
{
if (EAGAIN != errno)
{
printf("Error %d writing to dvap, message=%s\n", errno, strerror(errno));
printf("Error %d writing to %s: %s\n", errno, ITAP_DEVICE.c_str(), strerror(errno));
return -1;
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.