summaryrefslogtreecommitdiff
path: root/source3/profile
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-10 22:07:57 +0000
committerJeremy Allison <jra@samba.org>2000-11-10 22:07:57 +0000
commitc97023b14c942f7261808159a0d192926239b704 (patch)
tree2b9c719f521cf74982fd5b8ff00cb164dd88b924 /source3/profile
parent108f86dcccd21196105fb33f0e2ac0e5ef114341 (diff)
downloadsamba-c97023b14c942f7261808159a0d192926239b704.tar.gz
Merge in Herb's changes from 2.2.
Jeremy. (This used to be commit 24d76c5fbda29d89c96d7c22193ec2eb93ad3887)
Diffstat (limited to 'source3/profile')
-rw-r--r--source3/profile/profile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/profile/profile.c b/source3/profile/profile.c
index c639f17ce50..f1d2310ce18 100644
--- a/source3/profile/profile.c
+++ b/source3/profile/profile.c
@@ -54,20 +54,23 @@ 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));
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));
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));
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));
break;
}
- DEBUG(1,("Profile level set to %d from pid %d\n", level, (int)src));
}
/*******************************************************************