mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r12474: Fix a warning
(This used to be commit e361f4a5c55ed88b706cfc348907a899d8970445)
This commit is contained in:
parent
3ec1852ae0
commit
1638adaee2
@ -44,7 +44,7 @@ struct timeval profile_endtime_nested;
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
receive a set profile level message
|
receive a set profile level message
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
void profile_message(int msg_type, pid_t src, void *buf, size_t len)
|
void profile_message(int msg_type, struct process_id src, void *buf, size_t len)
|
||||||
{
|
{
|
||||||
int level;
|
int level;
|
||||||
|
|
||||||
@ -54,21 +54,25 @@ void profile_message(int msg_type, pid_t src, void *buf, size_t len)
|
|||||||
case 0: /* turn off profiling */
|
case 0: /* turn off profiling */
|
||||||
do_profile_flag = False;
|
do_profile_flag = False;
|
||||||
do_profile_times = False;
|
do_profile_times = False;
|
||||||
DEBUG(1,("INFO: Profiling turned OFF from pid %d\n", (int)src));
|
DEBUG(1,("INFO: Profiling turned OFF from pid %d\n",
|
||||||
|
(int)procid_to_pid(src)));
|
||||||
break;
|
break;
|
||||||
case 1: /* turn on counter profiling only */
|
case 1: /* turn on counter profiling only */
|
||||||
do_profile_flag = True;
|
do_profile_flag = True;
|
||||||
do_profile_times = False;
|
do_profile_times = False;
|
||||||
DEBUG(1,("INFO: Profiling counts turned ON from pid %d\n", (int)src));
|
DEBUG(1,("INFO: Profiling counts turned ON from pid %d\n",
|
||||||
|
(int)procid_to_pid(src)));
|
||||||
break;
|
break;
|
||||||
case 2: /* turn on complete profiling */
|
case 2: /* turn on complete profiling */
|
||||||
do_profile_flag = True;
|
do_profile_flag = True;
|
||||||
do_profile_times = True;
|
do_profile_times = True;
|
||||||
DEBUG(1,("INFO: Full profiling turned ON from pid %d\n", (int)src));
|
DEBUG(1,("INFO: Full profiling turned ON from pid %d\n",
|
||||||
|
(int)procid_to_pid(src)));
|
||||||
break;
|
break;
|
||||||
case 3: /* reset profile values */
|
case 3: /* reset profile values */
|
||||||
memset((char *)profile_p, 0, sizeof(*profile_p));
|
memset((char *)profile_p, 0, sizeof(*profile_p));
|
||||||
DEBUG(1,("INFO: Profiling values cleared from pid %d\n", (int)src));
|
DEBUG(1,("INFO: Profiling values cleared from pid %d\n",
|
||||||
|
(int)procid_to_pid(src)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#else /* WITH_PROFILE */
|
#else /* WITH_PROFILE */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user