mirror of
https://github.com/samba-team/samba.git
synced 2025-02-09 09:57:48 +03:00
r13149: DEBUG is a bad choice for 'net', it should print to stderr
Andrew Bartlett
This commit is contained in:
parent
38809b43a5
commit
4dd6afa6d1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user