[libfann] 46/242: Fixed the fprintf for when there is no struct fann allocated. Added newline for default (unknown) error.
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.
commit 66dd2f5f9c3818fd3b94413b19da22bb898f0df9
Author: Evan Nemerson <evan at coeus-group.com>
Date: Mon Jan 12 21:44:27 2004 +0000
Fixed the fprintf for when there is no struct fann allocated. Added newline for default (unknown) error.
---
src/fann_internal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/fann_internal.c b/src/fann_internal.c
index 7134f33..3ada91c 100644
--- a/src/fann_internal.c
+++ b/src/fann_internal.c
@@ -490,13 +490,13 @@ void fann_error(struct fann *ann, const unsigned int errno, ...)
vsnprintf(errstr, FANN_ERRSTR_MAX, "Error reading info from train data file \"%s\", line: %d.\n", ap);
break;
default:
- vsnprintf(errstr, FANN_ERRSTR_MAX, "Unknown error.", ap);
+ vsnprintf(errstr, FANN_ERRSTR_MAX, "Unknown error.\n", ap);
break;
}
va_end(ap);
if ( ann == NULL )
- fprintf(stderr, "FANN Error %d: %s", errstr);
+ fprintf(stderr, "Error: %s\n", errstr);
else
ann->errstr = errstr;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git
More information about the debian-science-commits
mailing list