]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Use the function name in a message to reduce the number of messages.
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 2 Apr 2015 19:18:24 +0000 (21:18 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 2 Apr 2015 19:18:24 +0000 (21:18 +0200)
util.c

diff --git a/util.c b/util.c
index 095cf07e10329b8b6f4fb1d4fa133f87d08246ea..0f4c181c50d4aebf0acc63c6e2adfd70aca2bc11 100644 (file)
--- a/util.c
+++ b/util.c
@@ -93,7 +93,11 @@ int getword(char *word, int limit, struct getwordstruct *gwarea, char stop)
 
        for(x=0;((gwarea->current[x]) && (gwarea->current[x] != stop ));x++) {
                if(x>=limit) {
-                       debuga(_("End of word not found in getword after %d bytes.\n"),x);
+                       /*
+                        TRANSLATORS: The %s is the name of the function reporting the
+                        error message.
+                        */
+                       debuga(_("End of word not found in %s after %d bytes.\n"),__func__,x);
                        debuga(_("Line=\"%s\"\n"),gwarea->beginning);
                        debuga(_("Record=\"%s\"\n"),gwarea->current);
                        debuga(_("searching for \'x%x\'\n"),stop);
@@ -133,7 +137,7 @@ int getword_multisep(char *word, int limit, struct getwordstruct *gwarea, char s
 
        for(x=0;((gwarea->current[x]) && (gwarea->current[x] != stop ));x++) {
                if(x>=limit) {
-                       debuga(_("End of word not found in getword_multisep after %d bytes.\n"),x);
+                       debuga(_("End of word not found in %s after %d bytes.\n"),__func__,x);
                        debuga(_("Line=\"%s\"\n"),gwarea->beginning);
                        debuga(_("Record=\"%s\"\n"),gwarea->current);
                        debuga(_("searching for \'x%x\'\n"),stop);
@@ -159,7 +163,7 @@ int getword_skip(int limit, struct getwordstruct *gwarea, char stop)
 
        for(x=0;(gwarea->current[x] && (gwarea->current[x] != stop ));x++) {
                if(x>=limit) {
-                       debuga(_("End of word not found in getword_skip after %d bytes.\n"),x);
+                       debuga(_("End of word not found in %s after %d bytes.\n"),__func__,x);
                        debuga(_("Line=\"%s\"\n"),gwarea->beginning);
                        debuga(_("Record=\"%s\"\n"),gwarea->current);
                        debuga(_("searching for \'x%x\'\n"),stop);