From patchwork Tue Jan 14 01:26:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 2642 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 398DD6070F for ; Tue, 14 Jan 2020 02:26:31 +0100 (CET) Received: from localhost.localdomain (cpc108967-cmbg20-2-0-cust420.5-4.cable.virginm.net [81.101.7.165]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9AD5B563; Tue, 14 Jan 2020 02:26:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1578965190; bh=+jZyLFoG1ahr4AYhYG5DT3WTGtZEbz9jHyF7b+7BJB4=; h=From:To:Cc:Subject:Date:From; b=M9UXGGEw4xuBj/dB55uELdjvBTuR7K2NbDc4VE7cGskuvHoJVf8gBWOM8W5yAzJ2M gHbXykOuGhFATrS9CIl5nXIdJhFnHHn+Ipmf5sucKeNfRR0H8Gd4pmrHYck0io5gDA WWR+IDv1HzJxsOrzZOBSiylvyC05ZwQhHo3TEfa8= From: Kieran Bingham To: LibCamera Devel Date: Tue, 14 Jan 2020 01:26:26 +0000 Message-Id: <20200114012626.25265-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: log: Expand log level names 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: , X-List-Received-Date: Tue, 14 Jan 2020 01:26:31 -0000 When the log severity names were added, there was only 4 characters reserved for their printing. When the FATAL level was added, this increased to 5, and thus both DBG and ERR can be expanded to their full spelling. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/libcamera/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/log.cpp b/src/libcamera/log.cpp index f4eb8c11adc3..4fc4b5ce0d39 100644 --- a/src/libcamera/log.cpp +++ b/src/libcamera/log.cpp @@ -83,10 +83,10 @@ static int log_severity_to_syslog(LogSeverity severity) static const char *log_severity_name(LogSeverity severity) { static const char *const names[] = { - " DBG", + "DEBUG", " INFO", " WARN", - " ERR", + "ERROR", "FATAL", };