summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-10-14 00:22:08 +0200
committerBjörn Jacke <bj@sernet.de>2009-10-14 00:22:08 +0200
commite33c23dc5cc2a0fc58f6af1d37f57675cc2c698f (patch)
tree3f5f066907119a245b1e965b5dcb11192709f92d /source3/utils
parent6deb1fcc8899c9d462a30712bcc20019819fc176 (diff)
downloadsamba-e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f.tar.gz
samba-e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f.tar.bz2
samba-e33c23dc5cc2a0fc58f6af1d37f57675cc2c698f.zip
s3:net: simplify padding to single printf call
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc_audit.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/utils/net_rpc_audit.c b/source3/utils/net_rpc_audit.c
index f0b440d3be..bc3ed3dba2 100644
--- a/source3/utils/net_rpc_audit.c
+++ b/source3/utils/net_rpc_audit.c
@@ -40,9 +40,6 @@ static int net_help_audit(struct net_context *c, int argc, const char **argv)
static void print_auditing_category(const char *policy, const char *value)
{
- fstring padding;
- int pad_len, col_len = 30;
-
if (policy == NULL) {
policy = N_("Unknown");
}
@@ -50,12 +47,7 @@ static void print_auditing_category(const char *policy, const char *value)
value = N_("Invalid");
}
- /* calculate padding space for d_printf to look nicer */
- pad_len = col_len - strlen(policy);
- padding[pad_len] = 0;
- do padding[--pad_len] = ' '; while (pad_len > 0);
-
- d_printf(_("\t%s%s%s\n"), policy, padding, value);
+ d_printf(_("\t%-30s%s\n"), policy, value);
}
/********************************************************************