From patchwork Thu Sep 17 12:19:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1366069 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=85.214.62.61; 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=bgDnOJ+I; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4BsbcZ1R8Bz9sS8 for ; Thu, 17 Sep 2020 22:19:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0494982396; Thu, 17 Sep 2020 14:19:15 +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="bgDnOJ+I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E2C758239F; Thu, 17 Sep 2020 14:19:12 +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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 0BCF182387 for ; Thu, 17 Sep 2020 14:19:10 +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=1600345147; bh=iDH3ZlOAKHdxTx+jw4fp2TZXWM2Eg/TRnR6eetmSkTk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=bgDnOJ+I/ckFWy4vWrKKIvfM/dDNnqBY2cBzkamcIQ4+xzzCrsFV1KDmXo9co3I81 pMmaZ6bz/gxVQdgitNEoHsE8Z9w+Oimt92h/g6+45FVnLHo2nMguK5DPiOYD9tNkwJ iWiXOKRQP/BfLNquS5fOJQxG4oLmq+vv3+nxfjeQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from LT02.fritz.box ([178.202.41.107]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N7R1T-1kZCSc1PEz-017jNr; Thu, 17 Sep 2020 14:19:07 +0200 From: Heinrich Schuchardt To: Simon Glass Cc: Bin Meng , Wolfgang Wallner , Sean Anderson , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [PATCH 0/2] log: allow for message continuation Date: Thu, 17 Sep 2020 14:19:00 +0200 Message-Id: <20200917121902.57403-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:Mk+lPz2YFyG8hqsW0ftIsDOZlD5dZEdUVerzY5eJz9SVW/5h8sV K6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6gSAJe2yKiNsLZ73cZ40JCWU/IgvAJPmk U8LH09ImRI5pAYL/Xze1KVfdRDPJGD1zvZA6ggcDbq9uy3oj0A3TsVCWhD2uxJ45/MV37wNGf lsP0EX6NtjHsXlJF6hQGAvYnci5pLyPDtxCjlgeqv596uRytaTwBzcGYMrvTTnCQNuvPn1n0a 9OY20pzkyMq9YL9fvtVEoeK8bDs5aTG4klRayOivD5wAeRYWTGAOO/WGBIKAzTAMqGfgeYLkl fuy7XxttcKf0rJVJL9tgh3SDSSdUZQEEKoYmzN/ygzrGB77f74dPKjtQ4U3kLgVQhHzYUnITd 1RClGWKwSDwwUCfGHxtRZRQsbq35k2cobj+uYZsZBQV7vk2wVYlZf7PFBYO0ZAdUF9/UEhG4Y D+l41HaERzqwn3wzSutccKnqcNtojb1r1KBsdyA== 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 With the first patch it becomes possible to continue a log message with the same log level and category as the previous messages. We need this facility to convert pr_cont() to use our logging drivers. The second patch provides a unit test. This patch is a prerequisite: [PATCH 1/1] log: mute messages generated by log drivers https://lists.denx.de/pipermail/u-boot/2020-September/426418.html Heinrich Schuchardt (2): log: allow for message continuation test: log: test message continuation common/log.c | 23 ++++++++++++++---- doc/develop/logging.rst | 6 +++++ include/log.h | 2 ++ test/log/Makefile | 4 +++- test/log/cont_test.c | 52 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 test/log/cont_test.c --- 2.28.0