libcamera: log: Fix two typos

Two incorrect spellings are fixed.
 'logr' -> 'log'
 'environement' -> 'environment'

Fixes: 747ace042c ("libcamera: log: Get log levels from the environment")
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

The log levels configuration is stored in category:level pairs, not
category=value. Fix the documentation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2019-01-23 14:24:45 +00:00 committed by Laurent Pinchart
parent e5163f54d4
commit 6b546603ac

View file

@ -29,7 +29,7 @@
* levels. * levels.
* *
* The levels are configurable through the LIBCAMERA_LOG_LEVELS environment * The levels are configurable through the LIBCAMERA_LOG_LEVELS environment
* variable that contains a comma-separated list of 'category=level' pairs. * variable that contains a comma-separated list of 'category:level' pairs.
* *
* The category names are strings and can include a wildcard ('*') character at * The category names are strings and can include a wildcard ('*') character at
* the end to match multiple categories. * the end to match multiple categories.
@ -134,9 +134,9 @@ void Logger::parseLogFile()
/** /**
* \brief Parse the log levels from the environment * \brief Parse the log levels from the environment
* *
* The logr levels are stored in LIBCAMERA_LOG_LEVELS environement variable as a list * The log levels are stored in the LIBCAMERA_LOG_LEVELS environment variable
* of "category=level" pairs, separated by commas (','). Parse the variable and * as a list of "category:level" pairs, separated by commas (','). Parse the
* store the levels to configure all log categories. * variable and store the levels to configure all log categories.
*/ */
void Logger::parseLogLevels() void Logger::parseLogLevels()
{ {