doveadm_print(t_strdup_printf("%s.%06u", ts_secs,
(unsigned int)error->timestamp.tv_usec));
if (error->prefix[0] == '\0')
- doveadm_print("");
+ doveadm_print_empty(1);
else {
const char *prefix = t_strconcat(
t_cmd_log_error_trim(error->prefix), ": ", NULL);
*field_name);
if (idx == UINT_MAX) {
doveadm_print("<not found>");
- doveadm_print("");
+ doveadm_print_empty(1);
continue;
}
doveadm_mail_failed_mailbox(_ctx, box);
} else if (ret == 0) {
/* not found, print as empty */
- doveadm_print("");
+ doveadm_print_empty(1);
} else if (value.value_stream != NULL) {
if (doveadm_print_istream(value.value_stream) < 0) {
e_error(ctx->ctx.cctx->event, "read(%s) failed: %s",
unsigned int i;
for (i = 0; i < fields_count && args[i] != NULL; i++)
doveadm_print(args[i]);
- for (; i < fields_count; i++)
- doveadm_print("");
+ doveadm_print_empty(fields_count - i);
}
} T_END;
}
for (alt_idx = 0; line->alt_usernames[alt_idx] != NULL; alt_idx++)
doveadm_print(line->alt_usernames[alt_idx]);
- for (; alt_idx < iter->alt_username_fields_count; alt_idx++)
- doveadm_print("");
+ doveadm_print_empty(iter->alt_username_fields_count - alt_idx);
}
static void cmd_who(struct doveadm_cmd_context *cctx)
if (rights->global)
doveadm_print("global");
else
- doveadm_print("");
+ doveadm_print_empty(1);
str = t_str_new(256);
if (rights->rights != NULL)
if (ret == 0)
error = "key not found";
doveadm_print(t_strdup_printf("ERROR: %s", error));
- doveadm_print("");
+ doveadm_print_empty(1);
} else {
string_t *out = t_str_new(64);
if (!dcrypt_key_store_private(pkey, DCRYPT_FORMAT_PEM, NULL, out,
NULL, NULL, &error)) {
doveadm_print(t_strdup_printf("ERROR: %s", error));
- doveadm_print("");
+ doveadm_print_empty(1);
} else {
/* this is to make it more compatible with openssl cli
as it expects BEGIN on its own line */