1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

changed some debug levels

(This used to be commit 121e321a12c5da5cb44ca1baece7e25c3ab7f943)
This commit is contained in:
Andrew Tridgell 1998-10-16 23:05:19 +00:00
parent 4865debe85
commit 56c5dc7de1
2 changed files with 15 additions and 6 deletions

View File

@ -293,7 +293,7 @@ char *smbw_parse_path(const char *fname, char *server, char *share, char *path)
string_sub(path, "/", "\\");
ok:
DEBUG(5,("parsed path name=%s cwd=%s [%s] [%s] [%s]\n",
DEBUG(4,("parsed path name=%s cwd=%s [%s] [%s] [%s]\n",
fname, smbw_cwd,
server, share, path));
@ -391,7 +391,7 @@ struct smbw_server *smbw_server(char *server, char *share)
make_nmb_name(&calling, global_myname, 0x0, "");
make_nmb_name(&called , server, 0x20, "");
DEBUG(5,("server_n=[%s] server=[%s]\n", server_n, server));
DEBUG(4,("server_n=[%s] server=[%s]\n", server_n, server));
if ((p=strchr(server_n,'#')) && strcmp(p+1,"1D")==0) {
struct in_addr ip;
@ -406,7 +406,7 @@ struct smbw_server *smbw_server(char *server, char *share)
server_n = group;
}
DEBUG(5,(" -> server_n=[%s] server=[%s]\n", server_n, server));
DEBUG(4,(" -> server_n=[%s] server=[%s]\n", server_n, server));
again:
/* have to open a new connection */
@ -425,6 +425,7 @@ struct smbw_server *smbw_server(char *server, char *share)
return NULL;
}
DEBUG(4,(" session request ok\n"));
if (!cli_negprot(&c)) {
cli_shutdown(&c);
@ -443,6 +444,8 @@ struct smbw_server *smbw_server(char *server, char *share)
return NULL;
}
DEBUG(4,(" session setup ok\n"));
if (!cli_send_tconX(&c, share, "?????",
password, strlen(password)+1)) {
errno = smbw_errno(&c);
@ -450,6 +453,8 @@ struct smbw_server *smbw_server(char *server, char *share)
return NULL;
}
DEBUG(4,(" tconx ok\n"));
srv = (struct smbw_server *)malloc(sizeof(*srv));
if (!srv) {
errno = ENOMEM;

View File

@ -63,7 +63,7 @@ BOOL smbw_getatr(struct smbw_server *srv, char *path,
uint32 *mode, size_t *size,
time_t *c_time, time_t *a_time, time_t *m_time)
{
DEBUG(5,("sending qpathinfo\n"));
DEBUG(4,("sending qpathinfo\n"));
if (!srv->no_pathinfo2 &&
cli_qpathinfo2(&srv->cli, path, c_time, a_time, m_time, NULL,
@ -135,6 +135,8 @@ int smbw_fstat(int fd, struct stat *st)
return ret;
}
DEBUG(4,("sending qfileinfo\n"));
if (!cli_qfileinfo(&file->srv->cli, file->f->cli_fd,
&mode, &size, &c_time, &a_time, &m_time) &&
!cli_getattrE(&file->srv->cli, file->f->cli_fd,
@ -173,6 +175,8 @@ int smbw_stat(const char *fname, struct stat *st)
return -1;
}
DEBUG(4,("stat(%s)\n", fname));
smbw_init();
smbw_busy++;
@ -187,6 +191,8 @@ int smbw_stat(const char *fname, struct stat *st)
goto failed;
}
DEBUG(4,("smbw_stat\n"));
if (strncmp(srv->cli.dev,"IPC",3) == 0) {
mode = aDIR | aRONLY;
} else if (strncmp(srv->cli.dev,"LPT",3) == 0) {
@ -219,5 +225,3 @@ int smbw_stat(const char *fname, struct stat *st)
smbw_busy--;
return -1;
}