From patchwork Thu Oct 22 19:45:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1386412 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=iC3/awbg; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CHHsQ15xyz9sSn for ; Fri, 23 Oct 2020 06:45:46 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DBF0782423; Thu, 22 Oct 2020 21:45:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="iC3/awbg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 08FB982434; Thu, 22 Oct 2020 21:45:41 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 74B94823F3 for ; Thu, 22 Oct 2020 21:45:38 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1603395937; bh=8mBTxYwwsA86tmAcAU+V5zOdmxoh6HVAEMEq9QSwmf0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=iC3/awbgQ1V+lHOUsvKiwnBF5g419WkS11ovlcWDeLsZQGETdb7TsLQKfbGMhJbwa O80cmvezn5jN+8M+0q39SEWVmtENuNYsAOoaHtgHtncMoDVgX1Om6Cbixk5K6rtq6x v7UlZY5zP9foSHfPgfJnou4HC/QyIxtHxz4pKsgA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([178.202.41.107]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MMofc-1koJqG4B0u-00IjrJ; Thu, 22 Oct 2020 21:45:37 +0200 From: Heinrich Schuchardt To: Tom Rini Cc: Simon Glass , Stefan Roese , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 0/2] lib: print_freq() should output kHz not KHz Date: Thu, 22 Oct 2020 21:45:26 +0200 Message-Id: <20201022194528.5591-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:8CEopI0NuLkH3ttt8r56/Fu28hjC1C1JEJnMAuUiQrn9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8GSmt4PS/SeB3Gx2FWWfCsantT6s252XVKsz0613vYrDe2k dj6tdazfCIMYkYzWdwzg== X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Correct print_freq() for output of kHz. Provide unit tests for print_freq() and print_size(). v2: add missing test/lib/test_print.c Heinrich Schuchardt (2): lib: print_freq() should output kHz not KHz test: unit tests for print_freq(), print_size() include/display_options.h | 2 +- lib/display_options.c | 2 +- test/lib/Makefile | 1 + test/lib/test_print.c | 71 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 test/lib/test_print.c --- 2.28.0