make log a conditional macro for _log

This commit is contained in:
Brendan O'Dea 2004-11-03 13:23:58 +00:00
parent 99be8b127a
commit 284e4dd546
6 changed files with 31 additions and 29 deletions

View file

@ -23,12 +23,12 @@ int plugin_radius_response(struct param_radius_response *data)
if (*data->value) data->s->snoop_ip = inet_addr(data->value);
if (data->s->snoop_ip == INADDR_NONE) data->s->snoop_ip = 0;
if (*x) data->s->snoop_port = atoi(x);
p->log(3, 0, 0, 0, " Intercepting user to %s:%d\n",
p->_log(3, 0, 0, 0, " Intercepting user to %s:%d\n",
p->inet_toa(data->s->snoop_ip), data->s->snoop_port);
}
else
{
p->log(3, 0, 0, 0, " Not Intercepting user (reply string should be snoop=ip:port)\n");
p->_log(3, 0, 0, 0, " Not Intercepting user (reply string should be snoop=ip:port)\n");
}
}
return PLUGIN_RET_OK;