diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-12-25 09:49:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:57 -0500 |
commit | 1638adaee28e5ef75bc28344fbc94c685d4221b3 (patch) | |
tree | 71c3d15fb0db86928d585badd230b412f4f34028 /source3/profile/profile.c | |
parent | 3ec1852ae042b7bcc1b9ee58effb44bc49ffc415 (diff) | |
download | samba-1638adaee28e5ef75bc28344fbc94c685d4221b3.tar.gz |
r12474: Fix a warning
(This used to be commit e361f4a5c55ed88b706cfc348907a899d8970445)
Diffstat (limited to 'source3/profile/profile.c')
-rw-r--r-- | source3/profile/profile.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c index 0cf8c8e15bf..c3399f874d9 100644 --- a/source3/profile/profile.c +++ b/source3/profile/profile.c @@ -44,7 +44,7 @@ struct timeval profile_endtime_nested; /**************************************************************************** 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; @@ -54,21 +54,25 @@ void profile_message(int msg_type, pid_t src, void *buf, size_t len) case 0: /* turn off profiling */ do_profile_flag = 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; case 1: /* turn on counter profiling only */ do_profile_flag = True; 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; case 2: /* turn on complete profiling */ do_profile_flag = 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; case 3: /* reset profile values */ 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; } #else /* WITH_PROFILE */ |