svn commit: samba r13149 - in branches/SAMBA_4_0/source/utils/net: .

abartlet at samba.org abartlet at samba.org
Thu Jan 26 01:59:08 GMT 2006


Author: abartlet
Date: 2006-01-26 01:59:07 +0000 (Thu, 26 Jan 2006)
New Revision: 13149

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13149

Log:
DEBUG is a bad choice for 'net', it should print to stderr

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/utils/net/net_join.c


Changeset:
Modified: branches/SAMBA_4_0/source/utils/net/net_join.c
===================================================================
--- branches/SAMBA_4_0/source/utils/net/net_join.c	2006-01-26 00:14:25 UTC (rev 13148)
+++ branches/SAMBA_4_0/source/utils/net/net_join.c	2006-01-26 01:59:07 UTC (rev 13149)
@@ -46,7 +46,7 @@
 			} else if (strcasecmp(argv[1], "MEMBER") == 0) {
 				secure_channel_type = SEC_CHAN_WKSTA;
 			} else {
-				DEBUG(0, ("net_join: 2nd argument must be MEMBER or BDC\n"));
+				d_fprintf(stderr, "net_join: 2nd argument must be MEMBER or BDC\n");
 				return net_join_usage(ctx, argc, argv);
 			}
 			break;
@@ -76,8 +76,8 @@
 	status = libnet_Join(libnetctx, r, r);
 	
 	if (!NT_STATUS_IS_OK(status)) {
-		d_printf("Joining domain failed: %s\n",
-			 r->out.error_string ? r->out.error_string : nt_errstr(status));
+		d_fprintf(stderr, "Joining domain failed: %s\n",
+			  r->out.error_string ? r->out.error_string : nt_errstr(status));
 		talloc_free(r);
 		talloc_free(libnetctx);
 		return -1;



More information about the samba-cvs mailing list