harmonize report & debug() messages: no '\n' or '.' at end

This commit is contained in:
marschap committed 2007-06-17 10:39:49 +00:00
1 parent 1899ff755c
commit 77209a6f3f
14 files changed
+77 -75

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@ iface_process_configfile(void)
char iface_label[12];
sprintf(iface_label, "Interface%i", iface_count);
debug(RPT_DEBUG, "Label %s count %i\n", iface_label, iface_count);
debug(RPT_DEBUG, "Label %s count %i", iface_label, iface_count);
iface[iface_count].name = strdup(config_get_string("Iface", iface_label, 0, ""));
if (iface[iface_count].name == NULL) {
report(RPT_CRIT, "malloc failure");
@@ -74,7 +74,7 @@ iface_process_configfile(void)
if (iface[iface_count].alias == NULL)
// make alia the same as the interface name in case strdup() failed
iface[iface_count].alias = iface[iface_count].name;
debug(RPT_DEBUG, "Interface %i: %s alias %s\n",
debug(RPT_DEBUG, "Interface %i: %s alias %s",
iface_count, iface[iface_count].name, iface[iface_count].alias);
}