miniupnpd: improve (some) logs

This commit is contained in:
Thomas Bernard 2015-01-20 14:13:18 +01:00
parent a32df2ee1c
commit 241ede9ddf
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: minissdp.c,v 1.72 2014/10/22 11:54:45 nanard Exp $ */
/* $Id: minissdp.c,v 1.73 2015/01/17 11:26:05 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2015 Thomas Bernard
@ -883,7 +883,9 @@ ProcessSSDPData(int s, const char *bufr, int n,
{
if (lan_addr == NULL)
{
syslog(LOG_ERR, "Can't find in which sub network the client is");
syslog(LOG_ERR,
"Can't find in which sub network the client %s is",
sender_str);
return;
}
announced_host = lan_addr->str;

View File

@ -1,4 +1,4 @@
/* $Id: miniupnpd.c,v 1.205 2014/12/10 09:33:25 nanard Exp $ */
/* $Id: miniupnpd.c,v 1.206 2015/01/17 11:26:04 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2015 Thomas Bernard
@ -1640,7 +1640,7 @@ main(int argc, char * * argv)
return 0;
}
syslog(LOG_INFO, "Starting%s%swith external interface %s BOOTID=%u",
syslog(LOG_INFO, "version " MINIUPNPD_VERSION " starting%s%sext if %s BOOTID=%u",
#ifdef ENABLE_NATPMP
#ifdef ENABLE_PCP
GETFLAG(ENABLENATPMPMASK) ? " NAT-PMP/PCP " : " ",