[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.29 and 1.30

version 1.29, 2014/04/07 21:42:56 version 1.30, 2014/05/24 17:04:16
Line 161 
Line 161 
                 } else                  } else
                         ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE;                          ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE;
   
                 if (ktrace(tracefile, ops, trpoints, pid) < 0)                  if (ktrace(tracefile, ops, trpoints, pid) < 0) {
                           if (errno == ESRCH)
                                   err(1, "%d", pid);
                         err(1, "%s", tracefile);                          err(1, "%s", tracefile);
                   }
                 exit(0);                  exit(0);
         }          }
   
Line 196 
Line 199 
                 execvp(argv[0], &argv[0]);                  execvp(argv[0], &argv[0]);
                 err(1, "exec of '%s' failed", argv[0]);                  err(1, "exec of '%s' failed", argv[0]);
         }          }
         else if (ktrace(tracefile, ops, trpoints, pid) < 0)          else if (ktrace(tracefile, ops, trpoints, pid) < 0) {
                   if (errno == ESRCH)
                           err(1, "%d", pid);
                 err(1, "%s", tracefile);                  err(1, "%s", tracefile);
           }
         exit(0);          exit(0);
 }  }
   

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30