mtd/util/jittertest JitterTest.c, 1.12, 1.13 plotJittervsFill.c, 1.5, 1.6

gleixner at infradead.org gleixner at infradead.org
Mon Nov 7 06:15:24 EST 2005


Update of /home/cvs/mtd/util/jittertest
In directory phoenix.infradead.org:/tmp/cvs-serv29274/util/jittertest

Modified Files:
	JitterTest.c plotJittervsFill.c 
Log Message:
[MTD / JFFS2] Clean up trailing white spaces


Index: JitterTest.c
===================================================================
RCS file: /home/cvs/mtd/util/jittertest/JitterTest.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- JitterTest.c	10 Aug 2001 19:23:11 -0000	1.12
+++ JitterTest.c	7 Nov 2005 11:15:20 -0000	1.13
@@ -22,6 +22,9 @@
  *  Revision History:
  *  $Id$
  *  $Log$
+ *  Revision 1.13  2005/11/07 11:15:20  gleixner
+ *  [MTD / JFFS2] Clean up trailing white spaces
+ *
  *  Revision 1.12  2001/08/10 19:23:11  vipin
  *  Ready to be released under GPL! Added proper headers etc.
  *
@@ -91,7 +94,7 @@
 
 
 /**************************** Enumerations ****************************/
-enum timerActions 
+enum timerActions
     {
         ONESHOT,
         AUTORESETTING
@@ -197,7 +200,7 @@
 static int SignalGCTask = FALSE; /* should be signal SIGSTOP/SIGCONT to gc task?*/
 static int GCTaskPID;
 
-static int RunAsRTTask = FALSE; /* default action unless priority is 
+static int RunAsRTTask = FALSE; /* default action unless priority is
 				   specified on cmd line */
 
 
@@ -231,14 +234,14 @@
     char *argv[])
 {
     struct sched_param schedParam;
-    
+
     int mypri;
     char tmpBuf[200];
-    
-    
+
+
     strcpy(OutFileName,"jitter.dat");
     InterruptPeriodMilliSec = MIN_INT_PERIOD_MILLISEC;
-    
+
     /* Get the minimum and maximum priorities. */
     MinPriority = sched_get_priority_min(PRIORITY_POLICY);
     MaxPriority = sched_get_priority_max(PRIORITY_POLICY);
@@ -250,10 +253,10 @@
         printf("\n*** Unable to get maximum priority. ***\n");
         exit(EXIT_MAX_PRIORITY_ERR);
     }
-    
+
     /* Set requested priority to minimum value as default. */
     RequestedPriority = MinPriority;
-    
+
     HandleCmdLineArgs(argc, argv);
 
     if(mlockall(MCL_CURRENT|MCL_FUTURE) < 0){
@@ -273,8 +276,8 @@
 	  close(Fd1);
 	  exit(EXIT_SET_SCHEDULER_ERR);
 	}
-	
-	
+
+
 	/* Double check as I have some doubts that it's really
 	   running at realtime priority! */
 	if((mypri = sched_getscheduler(0)) != RequestedPriority)
@@ -285,7 +288,7 @@
 	    {
 	      printf("Running with %i priority. Good!\n", mypri);
 	    }
-	
+
     }
 
     /*------------------------- Initializations --------------------------*/
@@ -294,20 +297,20 @@
         perror("Cannot open outfile for write:");
         exit(1);
     }
-    
+
     /* If a request is made to read from a specified file, then create that
        file and fill with junk data so that there is something there to read.
     */
     if(DoRead)
     {
-        
+
         if((Fd2 = open(ReadFile, O_RDWR|O_CREAT|O_SYNC|O_TRUNC)) <= 0)
         {
             perror("cannot open read file:");
             exit(1);
         }else
         {
-            
+
             /* Don't really care how much we write here */
             if(write(Fd2, READ_FILE_MESSAGE, strlen(READ_FILE_MESSAGE)) < 0)
             {
@@ -317,9 +320,9 @@
             lseek(Fd2, 0, SEEK_SET); /* position back to byte #0 */
         }
     }
-    
-    
-    
+
+
+
     /* Also log output to console. This way we can capture it
        on a serial console to a log file.
     */
@@ -328,83 +331,83 @@
         perror("cannot open o/p logfile:");
         exit(1);
     }
-    
-    
+
+
     /* Set-up handler for periodic interrupt. */
     if (signal(SIGALRM, &AlarmHandler) == SIG_ERR) {
         printf("Couldn't register signal handler for SIGALRM.\n");
         sprintf(tmpBuf,
                 "Couldn't register signal handler for SIGALRM.\n");
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
+
         close(Fd1);
         exit(EXIT_REG_SIGALRM_ERR);
     }
-    
+
     /* Set-up handler for Ctrl+C to exit the program. */
     if (signal(SIGINT, &SignalHandler) == SIG_ERR) {
         printf("Couldn't register signal handler for SIGINT.\n");
         sprintf(tmpBuf,
                 "Couldn't register signal handler for SIGINT.\n");
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
+
         close(Fd1);
         exit(EXIT_REG_SIGINT_ERR);
     }
-    
+
     printf("Press Ctrl+C to exit the program.\n");
     printf("Output File:        %s\n", OutFileName);
     printf("Scheduler priority: %d\n", RequestedPriority);
     sprintf(tmpBuf, "\nScheduler priority: %d\n",
             RequestedPriority);
     Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-    
+
     Write(Cfd, tmpBuf, strlen(tmpBuf), __LINE__);
-    
+
     printf("Interrupt period:   %ld milliseconds\n",
            InterruptPeriodMilliSec);
     sprintf(tmpBuf, "Interrupt period:   %ld milliseconds\n",
             InterruptPeriodMilliSec);
-    
+
     Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-    
+
     Write(Cfd, tmpBuf, strlen(tmpBuf), __LINE__);
-    
-    
+
+
     fflush(0);
-    
-    
-    
+
+
+
     /* Initialize the periodic timer. */
     InitITimer(&ITimer, ONESHOT);
-    
+
     /* Initialize "previous" time. */
     if (gettimeofday(&PrevTimeVal, NULL) != (int) 0) {
         printf("Exiting - ");
         printf("Unable to initialize previous time of day.\n");
         sprintf(tmpBuf, "Exiting - ");
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
+
         sprintf(tmpBuf,
                 "Unable to initialize previous time of day.\n");
-        
+
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
+
     }
-    
+
     /* Start the periodic timer. */
     setitimer(ITIMER_REAL, &ITimer, NULL);
-    
-    
+
+
     while(TRUE) {    /* Intentional infinite loop. */
         /* Sleep for one second. */
         sleep((unsigned int) 1);
     }
-    
+
     /* Just in case. File should be closed in SignalHandler. */
     close(Fd1);
     close(Cfd);
-    
+
     return 0;
 }
 
@@ -422,18 +425,18 @@
 {
 
     char tmpBuf[200];
-    
+
     /* Note sigNum not used. */
     printf("Ctrl+C detected. Worst Jitter time was:%fms.\nJitterTest exiting.\n",
            (float)LastMaxDiff/1000.0);
-    
+
     sprintf(tmpBuf,
             "\nCtrl+C detected. Worst Jitter time was:%fms\nJitterTest exiting.\n",
             (float)LastMaxDiff/1000.0);
     Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-    
+
     Write(Cfd, tmpBuf, strlen(tmpBuf), __LINE__);
-    
+
     close(Fd1);
     close(Cfd);
     exit(0);
@@ -455,7 +458,7 @@
     int fdProfile;
     int readBytes;
     char readBuf[4096];
-    
+
     if((fdSnapshot = open(fileName, O_WRONLY | O_CREAT)) <= 0)
     {
         fprintf(stderr, "Could not open file %s.\n", fileName);
@@ -481,11 +484,11 @@
     {
         perror("Could Not clear profile by writing to /proc/profile:");
     }
-        
+
     close(fdProfile);
-    
-    
-    
+
+
+
 }/* end doGrabKProfile()*/
 
 
@@ -493,27 +496,27 @@
   Call this routine to clear the kernel profiling buffer /proc/profile
 */
 void clearProfileBuf(void){
-  
-  
+
+
   int fdProfile;
   char readBuf[10];
-  
+
 
   if((fdProfile = open("/proc/profile", O_RDWR)) <= 0)
     {
       fprintf(stderr, "Could not open file /proc/profile. Make sure you booted with profile=2\n");
       return;
     }
-  
- 
+
+
   if(write(fdProfile, readBuf, 1) != 1)
     {
       perror("Could Not clear profile by writing to /proc/profile:");
     }
-  
+
   close(fdProfile);
-  
-  
+
+
 }/* end clearProfileBuf() */
 
 
@@ -530,11 +533,11 @@
 void AlarmHandler(
     int sigNum)                     /* signal number (not used)         */
 {
-    
+
     long timeDiffusec;  /* diff time in micro seconds */
     long intervalusec;
-    
-    
+
+
     char tmpBuf[MAX_WRITE_BYTES];
     int cntr;
     char padChar;
@@ -546,33 +549,33 @@
 				   where time() will be the same as this time
 				   if invoked < 1sec apart.
 				*/
-    
+
     if (gettimeofday(&CurrTimeVal, NULL) == (int) 0) {
-        
+
         /*----------------------------------------------------------------
          * Compute the elapsed time between the current and previous
          * time of day values and store the result.
          *
-         * Print the elapsed time to the output file. 
+         * Print the elapsed time to the output file.
          *---------------------------------------------------------------*/
-        
+
         timeDiffusec = (long)(((((long long)CurrTimeVal.tv_sec) * 1000000L) + CurrTimeVal.tv_usec) -
                         (((long long)PrevTimeVal.tv_sec * 1000000L) + PrevTimeVal.tv_usec));
-        
+
         sprintf(tmpBuf," %f ms  ", (float)timeDiffusec/1000.0);
-        
+
         intervalusec = InterruptPeriodMilliSec * 1000L;
-        
+
         timeDiffusec = timeDiffusec - intervalusec;
-        
+
         sprintf(&tmpBuf[strlen(tmpBuf)]," %f ms", (float)timeDiffusec/1000.0);
-        
-        
+
+
 	/* should we send a SIGSTOP/SIGCONT to the specified PID? */
 	if(SignalGCTask){
-	    
+
 	  if(kill(GCTaskPID, SIGSTOP) < 0){
-	    
+
 	    perror("error:");
 	  }
 	}
@@ -587,31 +590,31 @@
 	    if((GrabKProfile == TRUE) && (ProfileTriggerMSecs < (abs(timeDiffusec)/1000)))
 	      {
 		  sprintf(profileFileName, "JitterTest.profilesnap-%i", profileFileNo);
-		
+
 		  /* go and grab the kernel performance profile. */
 		  doGrabKProfile(timeDiffusec, profileFileName);
 		  profileFileNo++; /* unique name next time */
-		  
+
 		  /* Say so on the console so that a marker gets put in the console log */
 		  sprintf(&tmpBuf[strlen(tmpBuf)],"<Profile saved in file:%s>",
 			  profileFileName);
-		  
+
 	      }
-	    
+
         }
 
 
-        
+
 
         sprintf(&tmpBuf[strlen(tmpBuf)],"\n"); /* CR for the data going out of the console */
-        
+
         Write(Cfd, tmpBuf, strlen(tmpBuf), __LINE__);
 
 
         /* The "-1" below takes out the '\n' at the end that we appended for the msg printed on
          the console.*/
         sprintf(&tmpBuf[strlen(tmpBuf)-1]," PadBytes:");
-        
+
         /* Now pad the output file if requested by user. */
         if(WriteBytes > MIN_WRITE_BYTES)
         {
@@ -641,30 +644,30 @@
 
         /* write out the entire line to the output file. */
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
-        
+
+
         /* Read a byte from the specified file */
         if(DoRead)
         {
-            
+
             read(Fd2, tmpBuf, 1);
             lseek(Fd2, 0, SEEK_SET); /* back to start */
         }
-        
-        
+
+
         /* Start the periodic timer again. */
         setitimer(ITIMER_REAL, &ITimer, NULL);
-        
-        
+
+
         /* Update previous time with current time. */
         PrevTimeVal.tv_sec  = CurrTimeVal.tv_sec;
         PrevTimeVal.tv_usec = CurrTimeVal.tv_usec;
     }
-    
+
     else {
         sprintf(tmpBuf, "gettimeofday error \n");
         Write(Fd1, tmpBuf, strlen(tmpBuf), __LINE__);
-        
+
         printf("gettimeofday error \n");
     }
 
@@ -676,14 +679,14 @@
 
     /* should we send a SIGSTOP/SIGCONT to the specified PID? */
     if(SignalGCTask){
-      
+
       if(kill(GCTaskPID, SIGCONT) < 0){
-	
+
 	perror("error:");
       }
     }
 
-    
+
     return;
 }
 
@@ -701,7 +704,7 @@
 {
     long seconds;                   /* seconds portion of int. period   */
     long microSeconds;              /* microsec. portion of int. period */
-    
+
     /*--------------------------------------------------------------------
      * Divide the desired interrupt period into its seconds and
      * microseconds components.
@@ -716,23 +719,23 @@
             (InterruptPeriodMilliSec - (seconds * MILLISEC_PER_SEC)) *
             MICROSEC_PER_MILLISEC;
     }
-    
+
     /* Initialize the interrupt period structure. */
     pITimer->it_value.tv_sec     = seconds;
     pITimer->it_value.tv_usec    = microSeconds;
-    
+
     if(action == ONESHOT)
     {
         /* This will (should) prevent the timer from restarting itself */
         pITimer->it_interval.tv_sec  = 0;
-        pITimer->it_interval.tv_usec = 0;      
+        pITimer->it_interval.tv_usec = 0;
     }else
     {
         pITimer->it_interval.tv_sec  = seconds;
-        pITimer->it_interval.tv_usec = microSeconds;            
-        
+        pITimer->it_interval.tv_usec = microSeconds;
+
     }
-    
+
     return;
 }
 
@@ -747,20 +750,20 @@
     char *argv[])                   /* ptrs to command-line arguments   */
 {
     int argNum;                     /* argument number                  */
-    
+
     if (argc > (int) 1) {
-        
+
         for (argNum = (int) 1; argNum < argc; argNum++) {
-            
+
             /* The command line contains an argument. */
-            
+
             if ((strcmp(argv[argNum],"--version") == STRINGS_EQUAL) ||
                 (strcmp(argv[argNum],"-v")        == STRINGS_EQUAL)) {
                 /* Print version information and exit. */
                 PrintVersionInfo();
                 exit(0);
             }
-            
+
             else if ((strcmp(argv[argNum],"--help") == STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-h")     == STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-?")     == STRINGS_EQUAL)) {
@@ -768,7 +771,7 @@
                 PrintHelpInfo();
                 exit(0);
             }
-            
+
             else if ((strcmp(argv[argNum],"--file") == STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-f")     == STRINGS_EQUAL)) {
                 /* Set the name of the output file. */
@@ -781,7 +784,7 @@
                     printf("Default output file name will be used.\n");
                 }
             }
-            
+
             else if ((strcmp(argv[argNum],"--time") == STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-t")     == STRINGS_EQUAL)) {
                 /* Set the interrupt period. */
@@ -793,9 +796,9 @@
                     printf("*** Interrupt period not specified. ***\n");
                     printf("Default interrupt period will be used.\n");
                 }
-                
+
             }
-            
+
             else if ((strcmp(argv[argNum],"--priority") ==
                       STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-p")       == STRINGS_EQUAL)) {
@@ -808,34 +811,34 @@
                     printf("*** Scheduler priority not specified. ***\n");
                     printf("Default scheduler priority will be used.\n");
                 }
-                
+
             }
-            
+
             else if ((strcmp(argv[argNum],"--readfile") ==
                       STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-r")       == STRINGS_EQUAL)) {
                 /* Set the file to read*/
                 ++argNum;
-                
+
                 strncpy(ReadFile, argv[argNum], sizeof(ReadFile));
                 DoRead = TRUE;
             }
-            
+
             else if ((strcmp(argv[argNum],"--write_bytes") ==
                       STRINGS_EQUAL) ||
                      (strcmp(argv[argNum],"-w")       == STRINGS_EQUAL)) {
                 /* Set the file to read*/
                 ++argNum;
-                
+
                 WriteBytes = atoi(argv[argNum]);
-                
+
                 if(WriteBytes < MIN_WRITE_BYTES)
                 {
                     printf("Writing less than %i bytes is not allowed. Bye.\n",
                            MIN_WRITE_BYTES);
                     exit(0);
                 }
-                
+
 
             }
 
@@ -844,23 +847,23 @@
                      (strcmp(argv[argNum],"-c")       == STRINGS_EQUAL)) {
 	      /* Set the file to log console log on. */
 	      ++argNum;
-	      
+
 	      strncpy(LogFile, argv[argNum], sizeof(LogFile));
             }
-	    
+
             else if ((strcmp(argv[argNum],"--grab_kprofile") ==
                       STRINGS_EQUAL))
 	      {
                 /* We will read the /proc/profile file on configurable timeout */
                 GrabKProfile = TRUE;
-		
+
                 ++argNum;
-                
+
                 /* If the jittter is > this #, then the profile is grabbed. */
                 ProfileTriggerMSecs = (long) atoi(argv[argNum]);
-		
+
 		if(ProfileTriggerMSecs <= 0){
-		  
+
 		  printf("Illegal value for profile trigger threshold.\n");
 		  exit(0);
 		}
@@ -871,19 +874,19 @@
 	      {
                 /* We will SIGSTOP/SIGCONT the specified pid */
                 SignalGCTask = TRUE;
-		
+
                 ++argNum;
-                
+
                 GCTaskPID = atoi(argv[argNum]);
-		
+
 		if(ProfileTriggerMSecs <= 0){
-		  
+
 		  printf("Illegal value for JFFS(2) GC task pid.\n");
 		  exit(0);
 		}
 	      }
-            
-            
+
+
             else {
 	      /* Unknown argument. Print help information and exit. */
 	      printf("Invalid option %s\n", argv[argNum]);
@@ -892,7 +895,7 @@
             }
         }
     }
-    
+
     return;
 }
 
@@ -906,7 +909,7 @@
     char * pFileName)               /* ptr to desired output file name  */
 {
     size_t fileNameLen;             /* file name length (bytes)         */
-    
+
     /* Check file name length. */
     fileNameLen = strlen(pFileName);
     if (fileNameLen > (size_t) MAX_FILE_NAME_LEN) {
@@ -914,10 +917,10 @@
                pFileName, MAX_FILE_NAME_LEN);
         exit(0);
     }
-    
+
     /* File name length is OK so save the file name. */
     strcpy(OutFileName, pFileName);
-    
+
     return;
 }
 
@@ -932,7 +935,7 @@
     pASCIIInterruptPeriodMilliSec)
 {
     long period;                    /* interrupt period                 */
-    
+
     period = atol(pASCIIInterruptPeriodMilliSec);
     if ((period < MIN_INT_PERIOD_MILLISEC) ||
         (period > MAX_INT_PERIOD_MILLISEC)) {
@@ -955,7 +958,7 @@
     char * pASCIISchedulerPriority) /* ptr to desired scheduler priority*/
 {
     int priority;                   /* desired scheduler priority value */
-    
+
     priority = atoi(pASCIISchedulerPriority);
     if ((priority < MinPriority) ||
         (priority > MaxPriority)) {
@@ -1014,28 +1017,28 @@
     printf("  [--grab_kprofile <THRESHOLD in ms>]    Read the /proc/profile if jitter is > THRESHOLD and store in file.\n");
     printf("  [--siggc <PID>]   Before writing to fs send SIGSTOP to PID. After write send SIGCONT\n");
     return;
-    
+
 }
 
 
 /* A common write that checks for write errors and exits. Pass it __LINE__ for lineNo */
 int Write(int fd, void *buf, size_t bytes, int lineNo)
 {
-    
+
     int err;
 
     err = write(fd, buf, bytes);
-    
+
     if(err < bytes)
     {
-        
+
         printf("Write Error at line %i! Wanted to write %i bytes, but wrote only %i bytes.\n",
                lineNo, bytes, err);
         perror("Write did not complete. Error. Bye:"); /* show error from errno. */
 	exit(1);
-        
+
     }
-    
+
     return err;
-    
+
 }/* end Write*/

Index: plotJittervsFill.c
===================================================================
RCS file: /home/cvs/mtd/util/jittertest/plotJittervsFill.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- plotJittervsFill.c	10 Aug 2001 19:23:11 -0000	1.5
+++ plotJittervsFill.c	7 Nov 2005 11:15:21 -0000	1.6
@@ -30,6 +30,9 @@
 
   $Id$
   $Log$
+  Revision 1.6  2005/11/07 11:15:21  gleixner
+  [MTD / JFFS2] Clean up trailing white spaces
+
   Revision 1.5  2001/08/10 19:23:11  vipin
   Ready to be released under GPL! Added proper headers etc.
 
@@ -50,7 +53,7 @@
   and produces output suitable to be plotted.
   This output plot may be examined to see visually the relationship
   of the Jitter vs disk usage of the fs under test.
-  
+
  */
 
 #include <stdio.h>
@@ -90,20 +93,20 @@
     char *argv[])                   /* ptrs to command-line arguments   */
 {
     int argNum;                     /* argument number                  */
-    
+
     if (argc > (int) 1) {
-        
+
         for (argNum = (int) 1; argNum < argc; argNum++) {
-            
+
             /* The command line contains an argument. */
-            
+
             if ((strcmp(argv[argNum],"--version") == 0) ||
                 (strcmp(argv[argNum],"-v")        == 0)) {
                 /* Print version information and exit. */
                 printf("%s\n", Version_string);
                 exit(0);
             }
-            
+
             else if ((strcmp(argv[argNum],"--help") == 0) ||
                      (strcmp(argv[argNum],"-h")     == 0) ||
                      (strcmp(argv[argNum],"-?")     == 0)) {
@@ -124,14 +127,14 @@
                     exit(0);
                 }
             }
-            
+
             else if ((strcmp(argv[argNum],"--jitter_threshold") == 0) ||
                      (strcmp(argv[argNum],"-t") == 0)) {
                 /* Set the file to read*/
                 ++argNum;
-                
+
                 JitterThreshold_ms = atoi(argv[argNum]);
-                
+
                 if(JitterThreshold_ms < MIN_JITTER_THRESHOLD)
                 {
                     printf("A jitter threshold less than %i ms is not allowed. Bye.\n",
@@ -141,12 +144,12 @@
             }
 
             else if ((strcmp(argv[argNum],"-d") == 0))
-            {          
+            {
                 /* Increment debug level */
-                
+
                 Debug++;
             }
-                
+
             else {
                 /* Unknown argument. Print help information and exit. */
                 printf("Invalid option %s\n", argv[argNum]);
@@ -155,7 +158,7 @@
             }
         }
     }
-    
+
     return;
 }
 
@@ -187,13 +190,13 @@
                             we can o/p all these values.
                          */
     int dataLineNo[MAX_SAVE_BUFFER]; /* The saved line #'s for the above. Printed if debug specified. */
-     
+
     int saveJitterCnt = 0;
     int lookFor_df = FALSE;
     int dfPercent = -1; /* will be >= 0 if at least one found. The init value is a flag. */
-    
+
     char junkStr1[500], junkStr2[500];
-    
+
     HandleCmdLineArgs(argc, argv);
 
     if((fp = fopen(LogFile, "r")) == NULL)
@@ -202,9 +205,9 @@
         perror("Error:");
         exit(1);
     }
-    
 
-    
+
+
     while(fgets(lineBuf, sizeof(lineBuf), fp) != NULL)
     {
         lineNo++;
@@ -232,18 +235,18 @@
                                 dfPercent, (int)saveJitter[cnt]);
                     }else
                     {
-                        fprintf(stderr, "%i\t%i\n", dfPercent, (int)saveJitter[cnt]);                        
+                        fprintf(stderr, "%i\t%i\n", dfPercent, (int)saveJitter[cnt]);
                     }
-                    
-                    
+
+
                 }
 
                 saveJitterCnt = 0; /* all flushed. Reset for next saves. */
                 lookFor_df = FALSE;
             }
-            
+
         }
-        
+
 
         /* is there a "ms" in this line?*/
         if(strstr(lineBuf, "ms") == NULL)
@@ -260,7 +263,7 @@
             printf("1=%i, 2=%s.\n", junkInt1, junkStr1);
             continue; /* not our jitter line*/
         }
-        
+
         /* Is the jitter value > threshold value? */
         if(abs(jitter_ms) > JitterThreshold_ms)
         {
@@ -280,10 +283,10 @@
             {
                 printf("Oops! I've run out of buffer space before I found a %% use line. Dropping itter value. Increase MAX_SAVE_BUFFER and recompile.\n");
             }
-            
-            
+
+
         }
-        
+
     }
 
 
@@ -298,10 +301,10 @@
             fprintf(stderr, "%i\t%i\n", dfPercent, (int)saveJitter[cnt]);
         }
     }
-    
+
     return 0;
-    
-    
+
+
 }/* end main() */
 
 





More information about the linux-mtd-cvs mailing list