int level;
memcpy(&level, buf, sizeof(int));
DEBUGLEVEL = level;
- DEBUG(1,("Debug level set to %d from pid %d\n", level, (int)src));
+ DEBUG(1,("INFO: Debug level set to %d from pid %d\n", level, (int)src));
}
/****************************************************************************
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));
}
/*******************************************************************
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#define NO_SYSLOG
-
#include "includes.h"
static struct {
{"ping", MSG_PING},
{"profile", MSG_PROFILE},
{"debuglevel", MSG_REQ_DEBUGLEVEL},
+ {"printer-notify", MSG_PRINTER_NOTIFY},
{NULL, -1}
};
}
break;
+ case MSG_PRINTER_NOTIFY:
+ if (!strequal(dest, "smbd")) {
+ fprintf(stderr,"printer-notify can only be sent to smbd\n");
+ return(False);
+ }
+ if (!params) {
+ fprintf(stderr, "printer-notify needs a printer name\n");
+ return (False);
+ }
+ retval = send_message(dest, MSG_PRINTER_NOTIFY, params,
+ strlen(params) + 1);
+ break;
+
case MSG_PING:
if (!pong_registered) {
message_register(MSG_PONG, pong_function);