From a0b0681cc8d2c9c831fe8504ed2febdc0107ae8f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 25 Apr 2021 17:20:36 -0400 Subject: [PATCH] rename _internal_logmesg() to fmtargs_logmesg() vlogmesg() can be too easily confused with logmesg() --- src/utils.cpp | 4 ++-- src/utils.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index fedf86149e..809e625a29 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -131,8 +131,8 @@ void utils::logmesg(LAMMPS *lmp, const std::string &mesg) if (lmp->logfile) fputs(mesg.c_str(), lmp->logfile); } -void utils::_internal_logmesg(LAMMPS *lmp, fmt::string_view format, - fmt::format_args args) +void utils::fmtargs_logmesg(LAMMPS *lmp, fmt::string_view format, + fmt::format_args args) { if (lmp->screen) fmt::vprint(lmp->screen, format, args); if (lmp->logfile) fmt::vprint(lmp->logfile, format, args); diff --git a/src/utils.h b/src/utils.h index e0ab413e59..5f3644b558 100644 --- a/src/utils.h +++ b/src/utils.h @@ -49,8 +49,8 @@ namespace LAMMPS_NS { /* Internal function handling the argument list for logmesg(). */ - void _internal_logmesg(LAMMPS *lmp, fmt::string_view format, - fmt::format_args args); + void fmtargs_logmesg(LAMMPS *lmp, fmt::string_view format, + fmt::format_args args); /** Send formatted message to screen and logfile, if available * @@ -65,8 +65,8 @@ namespace LAMMPS_NS { template void logmesg(LAMMPS *lmp, const S &format, Args&&... args) { - _internal_logmesg(lmp, format, - fmt::make_args_checked(format, args...)); + fmtargs_logmesg(lmp, format, + fmt::make_args_checked(format, args...)); } /** \overload