mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
More %d (uid_t) stuff...
Jeremy.
This commit is contained in:
parent
30edd7fdf1
commit
73b425121a
@ -180,7 +180,7 @@ BOOL debug_parse_params(char **params, int *debuglevel_class)
|
||||
/* Allow DBGC_ALL to be specifies w/o requiring its class name e.g."10"
|
||||
* v.s. "all:10", this is the traditional way to set DEBUGLEVEL
|
||||
*/
|
||||
if (isdigit(params[0][0])) {
|
||||
if (isdigit((int)params[0][0])) {
|
||||
debuglevel_class[DBGC_ALL] = atoi(params[0]);
|
||||
i = 1; /* start processing at the next params */
|
||||
}
|
||||
@ -242,9 +242,9 @@ void debug_message(int msg_type, pid_t src, void *buf, size_t len)
|
||||
/* Set the new DEBUGLEVEL_CLASS array from the pased array */
|
||||
memcpy(DEBUGLEVEL_CLASS, buf, sizeof(DEBUGLEVEL_CLASS));
|
||||
|
||||
DEBUG(1,("INFO: Debug class %s level = %d (pid %d from pid %d)\n",
|
||||
DEBUG(1,("INFO: Debug class %s level = %d (pid %u from pid %u)\n",
|
||||
classname_table[DBGC_ALL],
|
||||
DEBUGLEVEL_CLASS[DBGC_ALL], getpid(), (int)src));
|
||||
DEBUGLEVEL_CLASS[DBGC_ALL], (unsigned int)getpid(), (unsigned int)src));
|
||||
|
||||
for (i=1; i<DBGC_LAST; i++) {
|
||||
if (DEBUGLEVEL_CLASS[i])
|
||||
|
@ -85,7 +85,7 @@ void reqprofile_message(int msg_type, pid_t src, void *buf, size_t len)
|
||||
#else
|
||||
level = 0;
|
||||
#endif
|
||||
DEBUG(1,("INFO: Received REQ_PROFILELEVEL message from PID %d\n",src));
|
||||
DEBUG(1,("INFO: Received REQ_PROFILELEVEL message from PID %u\n",(unsigned int)src));
|
||||
message_send_pid(src, MSG_PROFILELEVEL, &level, sizeof(int), True);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user