[BACK]Return to ktrace.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ktrace

Diff for /src/usr.bin/ktrace/ktrace.c between version 1.14 and 1.15

version 1.14, 2002/03/25 16:46:28 version 1.15, 2003/02/19 19:30:13
Line 126 
Line 126 
         argv += optind;          argv += optind;
         argc -= optind;          argc -= optind;
   
         if ((pidset && *argv) || (!pidset && !*argv))          if ((pidset && *argv) || (!pidset && !*argv && clear != CLEAR))
                 usage();                  usage();
   
         if (inherit)          if (inherit)
Line 195 
Line 195 
 usage()  usage()
 {  {
         (void)fprintf(stderr,          (void)fprintf(stderr,
 "usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cenis]\n\tktrace [-aCcid] [-f trfile] [-t [cenis] command\n");  "usage:\tktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t [ceinsw]]\n\tktrace [-adi] [-f trfile] [-t [ceinsw]] command\n");
         exit(1);          exit(1);
 }  }
   
Line 206 
Line 206 
         char buf[8192];          char buf[8192];
   
         snprintf(buf, sizeof(buf),          snprintf(buf, sizeof(buf),
 "error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'options KTRACE'\n");  "error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'option KTRACE'\n");
         write(STDERR_FILENO, buf, strlen(buf));          write(STDERR_FILENO, buf, strlen(buf));
         _exit(1);          _exit(1);
 }  }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15