use to_human_readable()
[claws.git] / src / common / smtp.c
index 6c4f7f9636f2911e20858cc38b821604102d1ed4..715c3d199df2fb76d6cbb5e15bd12184994fad45 100644 (file)
@@ -502,8 +502,9 @@ static gint smtp_session_recv_msg(Session *session, const gchar *msg)
                && smtp_session->max_message_size < 
                   smtp_session->send_data_len) {
                        log_warning(_("Message is too big "
-                                     "(Maximum size is %dKB)\n"),
-                                     smtp_session->max_message_size / 1024);
+                             "(Maximum size is %s)\n"),
+                             to_human_readable(
+                              (off_t)(smtp_session->max_message_size / 1024)));
                        smtp_session->state = SMTP_ERROR;
                        smtp_session->error_val = SM_ERROR;
                        return -1;