diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-26 01:59:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:51:28 -0500 |
commit | 05ea1558586438fb3a1865ce402cb4502de9dd49 (patch) | |
tree | 54402fa60be620773d4adbf1a0caf1778a40028c | |
parent | 20d9dc9796e866775dd8242a47481b7bb0c8cbad (diff) | |
download | samba-05ea1558586438fb3a1865ce402cb4502de9dd49.tar.gz samba-05ea1558586438fb3a1865ce402cb4502de9dd49.tar.bz2 samba-05ea1558586438fb3a1865ce402cb4502de9dd49.zip |
r13149: DEBUG is a bad choice for 'net', it should print to stderr
Andrew Bartlett
(This used to be commit 4dd6afa6d167fd04c1c3d4b4529b1cecf27eacaa)
-rw-r--r-- | source4/utils/net/net_join.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/utils/net/net_join.c b/source4/utils/net/net_join.c index 407de6e89d..9463b88dd7 100644 --- a/source4/utils/net/net_join.c +++ b/source4/utils/net/net_join.c @@ -46,7 +46,7 @@ int net_join(struct net_context *ctx, int argc, const char **argv) } 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 @@ int net_join(struct net_context *ctx, int argc, const char **argv) 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; |