From: hanseld <ha...@us...> - 2008-01-22 22:56:26
|
Update of /cvsroot/oprofile/oprofile/daemon In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv600/daemon Modified Files: Tag: JIT_SUPPORT init.c Log Message: Style fixups for JIT support dependent files Index: init.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/daemon/init.c,v retrieving revision 1.12.2.6 retrieving revision 1.12.2.7 diff -u -p -d -r1.12.2.6 -r1.12.2.7 --- init.c 12 Dec 2007 23:25:03 -0000 1.12.2.6 +++ init.c 22 Jan 2008 22:56:28 -0000 1.12.2.7 @@ -158,28 +158,28 @@ static void opd_do_jitdumps(void) childpid = fork(); switch (childpid) { - case -1: - perror("Error forking JIT dump process!"); - break; - case 0: - gettimeofday(&tv, NULL); - end_time = tv.tv_sec; - sprintf(end_time_str, "%llu", end_time); - arg_num = 0; - exec_args[arg_num++] = "opjitconv"; - if (vmisc) - exec_args[arg_num++] = "-d"; - exec_args[arg_num++] = session_dir; - exec_args[arg_num++] = start_time_str; - exec_args[arg_num++] = end_time_str; - exec_args[arg_num] = (char *) NULL; - execvp("opjitconv", exec_args); - fprintf(stderr, "Failed to exec %s: %s\n", - exec_args[0], strerror(errno)); - /* We don't want any cleanup in the child */ - _exit(EXIT_FAILURE); - default: - break; + case -1: + perror("Error forking JIT dump process!"); + break; + case 0: + gettimeofday(&tv, NULL); + end_time = tv.tv_sec; + sprintf(end_time_str, "%llu", end_time); + arg_num = 0; + exec_args[arg_num++] = "opjitconv"; + if (vmisc) + exec_args[arg_num++] = "-d"; + exec_args[arg_num++] = session_dir; + exec_args[arg_num++] = start_time_str; + exec_args[arg_num++] = end_time_str; + exec_args[arg_num] = (char *) NULL; + execvp("opjitconv", exec_args); + fprintf(stderr, "Failed to exec %s: %s\n", + exec_args[0], strerror(errno)); + /* We don't want any cleanup in the child */ + _exit(EXIT_FAILURE); + default: + break; } } |