From patchwork Tue Apr 13 21:51:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 11921 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 311E6BD224 for ; Tue, 13 Apr 2021 21:52:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E2805687D6; Tue, 13 Apr 2021 23:52:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="niwHgGA4"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CFD79602D1 for ; Tue, 13 Apr 2021 23:52:15 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 950B59F0 for ; Tue, 13 Apr 2021 23:52:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1618350734; bh=Iq0GV2J/Jm+UYS3dZyeHbVrIkgixaj/v/OPdQ0sYbv4=; h=From:To:Subject:Date:From; b=niwHgGA40ttj+3hS95iSHIgU2cahBdj8CFyuPB99J5pCU5lRFHonp6yfezb2USkgV 6Zib45Xo78IEjTVza/J67R90XhKDnnhRRnFWn5WC2dqY3AY/C873wGS7IR5Sga/dey jL6lAmTcwk7cXo+fkwWyZnXyu7eV+ED8UNlVgkYA= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 14 Apr 2021 00:51:19 +0300 Message-Id: <20210413215121.15538-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: log: Small improvements X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, This small patch series is a drive-by change the improves the logging implementation a little bit. I was hoping that builtins could give us pretty function names, but that's not the case, so I'm not entirely sure that 2/2 is worth it. Laurent Pinchart (2): libcamera: log: De-duplicate _log() functions and LogMessage constructor libcamera: log: Use compiler builtins to retrieve file and line number include/libcamera/internal/log.h | 20 ++++----- src/libcamera/log.cpp | 75 +++++--------------------------- 2 files changed, 20 insertions(+), 75 deletions(-)