summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-10-11 05:49:42 +0000
committerAndrew Tridgell <tridge@samba.org>1996-10-11 05:49:42 +0000
commitc71c1ff55f60f317039e3399f786e961dfac9e0b (patch)
tree06bbbe070f268b827e0ec323496607f2622703d9 /source3/libsmb
parent0b031a3f41158c421f64d2da41645b0c5ec7540d (diff)
downloadsamba-c71c1ff55f60f317039e3399f786e961dfac9e0b.tar.gz
samba-c71c1ff55f60f317039e3399f786e961dfac9e0b.tar.bz2
samba-c71c1ff55f60f317039e3399f786e961dfac9e0b.zip
- set default printer driver string to "NULL"
- fixed debug levels for name status parsing (This used to be commit f2c5f1eab1f3de7a9ae2b7ec4770a5c455dc04e4)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index f1847e38ba..fc02add5b5 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -31,9 +31,8 @@ interpret a node status response
****************************************************************************/
static void _interpret_node_status(char *p, char *master,char *rname)
{
- int level = (master||rname)?4:0;
int numnames = CVAL(p,0);
- DEBUG(level,("received %d names\n",numnames));
+ DEBUG(1,("received %d names\n",numnames));
if (rname) *rname = 0;
if (master) *master = 0;
@@ -73,10 +72,10 @@ static void _interpret_node_status(char *p, char *master,char *rname)
for (i = strlen( qname) ; --i >= 0 ; ) {
if (!isprint(qname[i])) qname[i] = '.';
}
- DEBUG(level,("\t%-15s <%02x> - %s\n",qname,type,flags));
+ DEBUG(1,("\t%-15s <%02x> - %s\n",qname,type,flags));
p+=2;
}
- DEBUG(level,("num_good_sends=%d num_good_receives=%d\n",
+ DEBUG(1,("num_good_sends=%d num_good_receives=%d\n",
IVAL(p,20),IVAL(p,24)));
}