From 70847429fa8f13796d6baa748bdc7f5e12bc0e93 Mon Sep 17 00:00:00 2001 From: Suresh Sundriyal <247110+sureshsundriyal@users.noreply.github.com> Date: Sun, 20 Sep 2020 19:25:05 -0700 Subject: [PATCH] [freebsd] Remove the use of basename from log_msg. Fix --- src/base/lnav_log.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/base/lnav_log.cc b/src/base/lnav_log.cc index 02a73bad..66eb4636 100644 --- a/src/base/lnav_log.cc +++ b/src/base/lnav_log.cc @@ -41,7 +41,6 @@ #include #include #include -#include #include #include @@ -274,7 +273,7 @@ void log_msg(lnav_log_level_t level, const char *src_file, int line_number, localtm.tm_sec, (int)(curr_time.tv_usec / 1000), LEVEL_NAMES[to_underlying(level)], - basename((char *)src_file), + src_file, line_number); rc = vsnprintf(&line[prefix_size], MAX_LOG_LINE_SIZE - prefix_size, fmt, args);