[Nagios-checkins] SF.net SVN: nagios:[2761] nagioscore/trunk/xdata/xodtemplate.c
Nagios network monitoring software is enterprise server monitoring
Brought to you by:
egalstad,
sawolf-nagios
From: <ag...@us...> - 2013-05-08 14:03:51
|
Revision: 2761 http://nagios.svn.sourceforge.net/nagios/?rev=2761&view=rev Author: ageric Date: 2013-05-08 14:03:29 +0000 (Wed, 08 May 2013) Log Message: ----------- xod: Avoid printf() calls Changing it to a logging call makes a lot more sense. Signed-off-by: Andreas Ericsson <ae...@op...> Modified Paths: -------------- nagioscore/trunk/xdata/xodtemplate.c Modified: nagioscore/trunk/xdata/xodtemplate.c =================================================================== --- nagioscore/trunk/xdata/xodtemplate.c 2013-05-08 14:03:12 UTC (rev 2760) +++ nagioscore/trunk/xdata/xodtemplate.c 2013-05-08 14:03:29 UTC (rev 2761) @@ -8973,7 +8973,7 @@ /* expand host */ result = xodtemplate_expand_hostgroups(&glist, reject, hostgroups, _config_file, _start_line); if(result != OK) { - printf("Failed to expand hostgroups '%s' to something sensible\n", hostgroups); + logit(NSLOG_CONFIG_ERROR, TRUE, "Failed to expand hostgroups '%s' to something sensible\n", hostgroups); free_objectlist(&glist); bitmap_destroy(reject); return NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |