rename _internal_logmesg() to fmtargs_logmesg()

vlogmesg() can be too easily confused with logmesg()
This commit is contained in:
Axel Kohlmeyer 2021-04-25 17:20:36 -04:00
parent a49d783e16
commit a0b0681cc8
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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 <typename S, typename... Args>
void logmesg(LAMMPS *lmp, const S &format, Args&&... args) {
_internal_logmesg(lmp, format,
fmt::make_args_checked<Args...>(format, args...));
fmtargs_logmesg(lmp, format,
fmt::make_args_checked<Args...>(format, args...));
}
/** \overload