Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3923683rwb; Mon, 16 Jan 2023 15:18:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXtYI2NQGp3s1lmZ2MIoHu9cOwR8mbv7VaLiXLUBQM8opPO4xkWmcIkiFRkQ31jFi1xpICdE X-Received: by 2002:aa7:cfc4:0:b0:49e:1d59:7942 with SMTP id r4-20020aa7cfc4000000b0049e1d597942mr992567edy.13.1673911122712; Mon, 16 Jan 2023 15:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673911122; cv=none; d=google.com; s=arc-20160816; b=QX7ImF9nsF1OJzmbf4mivaX6/xOXeLuJHQzIYeayyPfOd4GWU3JDBmhvHOongzNqgk MEZT+s/kkusOyuSZhvdF3liWrOQD5t+A2Tvebb2MTCk5dD66ZdQIkjEeDZGOdT/CemTx dfrOXamjIJ3yJwCMVr4bVOXn7W9HR6FUWfFhtj4PPLUH0aTGLSxkta0VIlFMU+vJXUBo fAJy+SxN/heWpukq3ImtuFcMBnXvVXw57wUxlEXjLiHNT7r0cIUKh3eYnoCUwKihs5hc uIQ9Ui1T9Z8GRkd+yELfgMCjCp8zZdow2I2L3tQdYRW1ej8qMGI0LgX3D/Oat2i2v/vV rcdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=TxIxNjO8WAuLVnESuBV62hxiU5+prfmke2sq4oQT2Mw=; b=Ie0csgmWfTv32qQYMftyn8f2lKRUSjFe2hsgmgjUEXCdwOBK8b+CX3UCAS9/kCKVLE kbKOAgaLN14hYFozJVEmwBpJY6N8If8lzyiutFRdoAi5fw5Y8QhzZtZk6BjdTI3Peg5I a12eJUljxSWoGOm+i7+ANZjauBN9FHt4364X01Y8uQP12Tcd05x4gi3ak6n4T7R0TYfQ 8YexnP+alW6tRpzQYCKnroVo3tXTJlpmom1G/jBQ7rAACoLB8220rOarscQ0ohibKrQd ykL2qU3tkAGLmFHsHdTWqcG6xn/2V+PyjtmUxz+xCvKbJlpyWrrdvGLjTWRGVXESogZn yLZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a056402518800b0048c87c7ebbfsi8976757edd.256.2023.01.16.15.18.30; Mon, 16 Jan 2023 15:18:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232975AbjAPWok (ORCPT + 49 others); Mon, 16 Jan 2023 17:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234199AbjAPWoi (ORCPT ); Mon, 16 Jan 2023 17:44:38 -0500 Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C4223C4F for ; Mon, 16 Jan 2023 14:44:36 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 68AA3200E8; Mon, 16 Jan 2023 23:44:35 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DRqu8HdldLja; Mon, 16 Jan 2023 23:44:35 +0100 (CET) Received: from begin (adijon-658-1-86-31.w86-204.abo.wanadoo.fr [86.204.233.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 31A8F200E2; Mon, 16 Jan 2023 23:44:35 +0100 (CET) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1pHYDS-0010kh-2N; Mon, 16 Jan 2023 23:44:34 +0100 Date: Mon, 16 Jan 2023 23:44:34 +0100 From: Samuel Thibault To: Alexey Gladkov Cc: Linux console tools development discussion , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [kbd] [patch] font: Leverage KD_FONT_OP_GET/SET_TALL font operations Message-ID: <20230116224434.sjo2ez4j6l4av4bc@begin> Mail-Followup-To: Samuel Thibault , Alexey Gladkov , Linux console tools development discussion , Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org References: <20221218003209.503539532@ens-lyon.org> <20221218003339.263695493@ens-lyon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexey Gladkov, le mer. 11 janv. 2023 21:00:05 +0100, a ecrit: > > @@ -54,13 +55,13 @@ do_loadfont(struct kfont_context *ctx, i > > int bad_video_erase_char = 0; > > int ret; > > > > - if (height < 1 || height > 32) { > > - KFONT_ERR(ctx, _("Bad character height %d"), height); > > + if (height < 1 || height > 64) { > > + KFONT_ERR(ctx, _("Bad character height %d (limit is 64)"), height); > > Hm. But max_font_height is 128. Shouldn't it be height > 128 ? > > > return -EX_DATAERR; > > } > > > > - if (width < 1 || width > 32) { > > - KFONT_ERR(ctx, _("Bad character width %d"), width); > > + if (width < 1 || width > 128) { > > + KFONT_ERR(ctx, _("Bad character width %d (limit is 128)"), width); > > Same here. max_font_width is 64. Oops, sure, fixed it, will send an updated kbd patch for that. Samuel