]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: net: normalize output of lookup subcommand
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Mon, 20 Aug 2018 13:10:31 +0000 (15:10 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 22 Sep 2018 04:05:07 +0000 (06:05 +0200)
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 <gary@catalyst.net.nz>
Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/utils/net_ads.c

index 054d8ddc648ab46d18bccc090d0061f3084897cc..77d9eec93749c3816ce2e332e9bfaf8351d62cfd 100644 (file)
@@ -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);