summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-16 23:05:19 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-16 23:05:19 +0000
commit56c5dc7de1eceaf8c834e72ec8b7a42d61784880 (patch)
treeebd657c7955c74964a87f4fc8403de680c2aebf9 /source3
parent4865debe85a0e22692ce61ab5438b651fd91ba92 (diff)
downloadsamba-56c5dc7de1eceaf8c834e72ec8b7a42d61784880.tar.gz
samba-56c5dc7de1eceaf8c834e72ec8b7a42d61784880.tar.bz2
samba-56c5dc7de1eceaf8c834e72ec8b7a42d61784880.zip
changed some debug levels
(This used to be commit 121e321a12c5da5cb44ca1baece7e25c3ab7f943)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbwrapper/smbw.c11
-rw-r--r--source3/smbwrapper/smbw_stat.c10
2 files changed, 15 insertions, 6 deletions
diff --git a/source3/smbwrapper/smbw.c b/source3/smbwrapper/smbw.c
index 9c690ac5fb..76cd92e607 100644
--- a/source3/smbwrapper/smbw.c
+++ b/source3/smbwrapper/smbw.c
@@ -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;
diff --git a/source3/smbwrapper/smbw_stat.c b/source3/smbwrapper/smbw_stat.c
index d9e2aa250c..adf973667f 100644
--- a/source3/smbwrapper/smbw_stat.c
+++ b/source3/smbwrapper/smbw_stat.c
@@ -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;
}
-
-