From: Marko <mka...@we...> - 2005-10-06 20:47:09
|
Hi, change this if you get annoyed by smartd's warning messages concerning an "odd character in extended regex" if you use '-' characters. Marko =================================================================== RCS file: /cvsroot/smartmontools/sm5/smartd.c,v retrieving revision 1.353 diff -u -3 -p -r1.353 smartd.c --- smartd.c 19 Sep 2005 01:02:45 -0000 1.353 +++ smartd.c 6 Oct 2005 20:44:29 -0000 @@ -2877,7 +2877,7 @@ int ParseToken(char *token,cfgfile *cfg) // Do a bit of sanity checking and warn user if we think that // their regexp is "strange". User probably confused about shell // glob(3) syntax versus regular expression syntax regexp(7). - if ((int)strlen(arg) != (val=strspn(arg,"0123456789/.+*|()?^$[]SLCO"))) + if ((int)strlen(arg) != (val=strspn(arg,"-0123456789/.+*|()?^$[]SLCO"))) PrintOut(LOG_INFO, "File %s line %d (drive %s): warning, character %d (%c) looks odd in extended regular expression %s\n", configfile, lineno, name, val+1, arg[val], arg); break; |
From: Christian F. <Chr...@t-...> - 2005-10-22 17:54:42
|
Hi Marko, you wrote: >change this if you get annoyed by smartd's warning messages concerning an "odd >character in extended regex" if you use '-' characters. > >[...] > >- if ((int)strlen(arg) != (val=strspn(arg,"0123456789/.+*|()?^$[]SLCO"))) >+ if ((int)strlen(arg) != (val=strspn(arg,"-0123456789/.+*|()?^$[]SLCO"))) > > This is now fixed in CVS. Thanks! Christian |
From: Marko <mk-...@em...> - 2005-10-22 19:58:34
|
On Saturday 22 October 2005 19:54, Christian Franke wrote: Hi Christian, > This is now fixed in CVS. Thanks! I did an update (see below), but still don't see it changed. Looks like the anonymous account isn't really up-to-date... Marko ---- marko@obelix:/usr/local/src/sm5> date;cvs diff Sa Okt 22 21:56:40 CEST 2005 Index: smartd.c =================================================================== RCS file: /cvsroot/smartmontools/sm5/smartd.c,v retrieving revision 1.353 diff -u -3 -p -r1.353 smartd.c --- smartd.c 19 Sep 2005 01:02:45 -0000 1.353 +++ smartd.c 22 Oct 2005 19:55:40 -0000 @@ -2877,7 +2877,7 @@ int ParseToken(char *token,cfgfile *cfg) // Do a bit of sanity checking and warn user if we think that // their regexp is "strange". User probably confused about shell // glob(3) syntax versus regular expression syntax regexp(7). - if ((int)strlen(arg) != (val=strspn(arg,"0123456789/.+*|()?^$[]SLCO"))) + if ((int)strlen(arg) != (val=strspn(arg,"-0123456789/.+*|()?^$[]SLCO"))) PrintOut(LOG_INFO, "File %s line %d (drive %s): warning, character %d (%c) looks odd in extended regular expression %s\n", configfile, lineno, name, val+1, arg[val], arg); break; marko@obelix:/usr/local/src/sm5> |
From: Bruce A. <ba...@gr...> - 2005-10-22 21:52:22
|
Anonymous CVS server is mirrored from developers CVS server. You may have= =20 to wait ~24 hours. On Sat, 22 Oct 2005, Marko K=E4ning wrote: > On Saturday 22 October 2005 19:54, Christian Franke wrote: > Hi Christian, > >> This is now fixed in CVS. Thanks! > > I did an update (see below), but still don't see it changed. Looks like t= he > anonymous account isn't really up-to-date... > > Marko > > ---- > > marko@obelix:/usr/local/src/sm5> date;cvs diff > Sa Okt 22 21:56:40 CEST 2005 > Index: smartd.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/smartmontools/sm5/smartd.c,v > retrieving revision 1.353 > diff -u -3 -p -r1.353 smartd.c > --- smartd.c 19 Sep 2005 01:02:45 -0000 1.353 > +++ smartd.c 22 Oct 2005 19:55:40 -0000 > @@ -2877,7 +2877,7 @@ int ParseToken(char *token,cfgfile *cfg) > // Do a bit of sanity checking and warn user if we think that > // their regexp is "strange". User probably confused about shell > // glob(3) syntax versus regular expression syntax regexp(7). > - if ((int)strlen(arg) !=3D (val=3Dstrspn(arg,"0123456789/.+*|()?^$[]S= LCO"))) > + if ((int)strlen(arg) !=3D (val=3Dstrspn(arg,"-0123456789/.+*|()?^$[]= SLCO"))) > PrintOut(LOG_INFO, "File %s line %d (drive %s): warning, character= %d > (%c) looks odd in extended regular expression %s\n", > configfile, lineno, name, val+1, arg[val], arg); > break; > marko@obelix:/usr/local/src/sm5> > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > |
From: Marko <mk-...@em...> - 2005-10-22 21:39:31
|
Hi, I noticed that the attribute "Offline_Seek_Performance" gets listed in logfiles as "Offline_Seek_Performnce", missing the letter 'a'. log example: > SMART Usage Attribute: 209 Offline_Seek_Performnce changed from Accidentally found it while updating my logcheck.ignore file. ;) Marko |
From: Bruce A. <ba...@gr...> - 2005-10-22 21:51:37
|
Deliberate, else length of word would overflow column width. On Sat, 22 Oct 2005, Marko K=E4ning wrote: > Hi, > > I noticed that the attribute "Offline_Seek_Performance" gets listed in > logfiles as "Offline_Seek_Performnce", missing the letter 'a'. > > log example: >> SMART Usage Attribute: 209 Offline_Seek_Performnce changed from > > Accidentally found it while updating my logcheck.ignore file. ;) > > Marko > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > |