From 2a08961400b46e468284e44f816d8fd614fa8f88 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 2 Apr 2020 16:16:59 -0400 Subject: [PATCH] lttng-view: clean-up: rename `parse_options()` -> `parse_viewer_option()` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This seems more representative of what this function does. Signed-off-by: Francis Deslauriers Change-Id: I78e4282a13048f4a35df4ddeae91b89969b73941 Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 232638963..3ba5766ea 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -70,10 +70,10 @@ static const struct viewer { /* Is the session we are trying to view is in live mode. */ static int session_live_mode; -static const struct viewer *parse_options(void) +static const struct viewer *parse_viewer_option(void) { if (opt_viewer == NULL) { - /* Default is babeltrace */ + /* Default is babeltrace2 */ return &(viewers[VIEWER_BABELTRACE2]); } @@ -195,8 +195,8 @@ static int spawn_viewer(const char *trace_path) const struct viewer *viewer; char **argv = NULL; - /* Check for --viewer options */ - viewer = parse_options(); + /* Check for --viewer option. */ + viewer = parse_viewer_option(); if (viewer == NULL) { ret = CMD_ERROR; goto error; -- 2.34.1