]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix an error message
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 18 Jul 2012 20:17:04 +0000 (22:17 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Wed, 18 Jul 2012 20:17:04 +0000 (22:17 +0200)
The error message reporting an invalid time with command line argument -t
said the time must be MM:SS instead of HH:MM.

log.c

diff --git a/log.c b/log.c
index e1a9ade153793172e96694da042f5045ee534d89..aeead6107bd12f3ada60b3c7c18556dcc4aa103c 100644 (file)
--- a/log.c
+++ b/log.c
@@ -458,7 +458,7 @@ int main(int argc,char *argv[])
 
                                if(strstr(optarg,"-") == 0) {
                                        if(sscanf(optarg,"%d:%d",&h1,&m1)!=2) {
-                                               debuga(_("Time period passed on the command line with option -t must be MM:SS\n"));
+                                               debuga(_("Time period passed on the command line with option -t must be HH:MM\n"));
                                                exit(EXIT_FAILURE);
                                        }
                                        hm=h1*100+m1;
@@ -466,7 +466,7 @@ int main(int argc,char *argv[])
                                        snprintf(hm_str,sizeof(hm_str),"%02d:%02d",h1,m1);
                                } else {
                                        if(sscanf(optarg,"%d:%d-%d:%d",&h1,&m1,&h2,&m2)!=4) {
-                                               debuga(_("Time range passed on the command line with option -t must be MM:SS-MM:SS\n"));
+                                               debuga(_("Time range passed on the command line with option -t must be HH:MM-HH:MM\n"));
                                                exit(EXIT_FAILURE);
                                        }
                                        hm=h1*100+m1;