From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Sat, 17 Oct 2020 14:07:27 -0400 Subject: [PATCH v3 02/23] log: Fix incorrect documentation of log_filter.cat_list In-Reply-To: <20201017180749.119271-1-seanga2@gmail.com> References: <20201017180749.119271-1-seanga2@gmail.com> Message-ID: <20201017180749.119271-3-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Logging category lists are terminated by LOGC_END, not LOGC_NONE. Fixes: e9c8d49d54 ("log: Add an implementation of logging") Signed-off-by: Sean Anderson Reviewed-by: Heinrich Schuchardt --- (no changes since v2) Changes in v2: - Also fix misdocumentation of for log_add_filter() include/log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/log.h b/include/log.h index 4acc087b2e..3487c936c9 100644 --- a/include/log.h +++ b/include/log.h @@ -368,7 +368,7 @@ enum log_filter_flags { * new filter, and must be provided when removing a previously added * filter. * @flags: Flags for this filter (LOGFF_...) - * @cat_list: List of categories to allow (terminated by LOGC_none). If empty + * @cat_list: List of categories to allow (terminated by %LOGC_END). If empty * then all categories are permitted. Up to LOGF_MAX_CATEGORIES entries * can be provided * @max_level: Maximum log level to allow @@ -446,7 +446,7 @@ int do_log_test(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); * * @drv_name: Driver name to add the filter to (since each driver only has a * single device) - * @cat_list: List of categories to allow (terminated by LOGC_none). If empty + * @cat_list: List of categories to allow (terminated by %LOGC_END). If empty * then all categories are permitted. Up to LOGF_MAX_CATEGORIES entries * can be provided * @max_level: Maximum log level to allow -- 2.28.0