From: Philipp Gesang Date: Mon, 20 Aug 2018 13:10:31 +0000 (+0200) Subject: s3: net: normalize output of lookup subcommand X-Git-Tag: tdb-1.3.17~1512 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a19b4e31b52d5d58ff3266b758ec8294d6c497c;p=thirdparty%2Fsamba.git s3: net: normalize output of lookup subcommand Use spaces and tabs consistently following the majority of the printed output: tabs only for indenting, no space before the colon separator, a single space after the separator. The irregularities in formatting date back to the original commit 2c029a8b96.. Reviewed-by: Gary Lockyer Signed-off-by: Philipp Gesang Reviewed-by: Andrew Bartlett --- diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c index 054d8ddc648..77d9eec9374 100644 --- a/source3/utils/net_ads.c +++ b/source3/utils/net_ads.c @@ -386,17 +386,17 @@ static int net_ads_cldap_netlogon(struct net_context *c, ADS_STRUCT *ads) (reply.server_type & NBT_SERVER_DS_8) ? _("yes") : _("no")); - printf(_("Forest:\t\t\t%s\n"), reply.forest); - printf(_("Domain:\t\t\t%s\n"), reply.dns_domain); - printf(_("Domain Controller:\t%s\n"), reply.pdc_dns_name); + printf(_("Forest: %s\n"), reply.forest); + printf(_("Domain: %s\n"), reply.dns_domain); + printf(_("Domain Controller: %s\n"), reply.pdc_dns_name); - printf(_("Pre-Win2k Domain:\t%s\n"), reply.domain_name); - printf(_("Pre-Win2k Hostname:\t%s\n"), reply.pdc_name); + printf(_("Pre-Win2k Domain: %s\n"), reply.domain_name); + printf(_("Pre-Win2k Hostname: %s\n"), reply.pdc_name); - if (*reply.user_name) printf(_("User name:\t%s\n"), reply.user_name); + if (*reply.user_name) printf(_("User name: %s\n"), reply.user_name); - printf(_("Server Site Name :\t\t%s\n"), reply.server_site); - printf(_("Client Site Name :\t\t%s\n"), reply.client_site); + printf(_("Server Site Name: %s\n"), reply.server_site); + printf(_("Client Site Name: %s\n"), reply.client_site); d_printf(_("NT Version: %d\n"), reply.nt_version); d_printf(_("LMNT Token: %.2x\n"), reply.lmnt_token);