code formatting
This commit is contained in:
parent
e9bb008f15
commit
3fdc7996db
@ -245,7 +245,7 @@ inline size_t filesize(FILE *f)
|
|||||||
}
|
}
|
||||||
#else // unix 32 bits or cygwin
|
#else // unix 32 bits or cygwin
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (fstat(fd, &st) == 0)
|
if (fstat(fd, &st) == 0)
|
||||||
{
|
{
|
||||||
return static_cast<size_t>(st.st_size);
|
return static_cast<size_t>(st.st_size);
|
||||||
|
@ -480,11 +480,10 @@ class full_formatter SPDLOG_FINAL : public flag_formatter
|
|||||||
|
|
||||||
msg.formatted << '[';
|
msg.formatted << '[';
|
||||||
// wrap the level name with color
|
// wrap the level name with color
|
||||||
msg.color_range_start = msg.formatted.size();
|
msg.color_range_start = msg.formatted.size();
|
||||||
msg.formatted << level::to_str(msg.level);
|
msg.formatted << level::to_str(msg.level);
|
||||||
msg.color_range_end = msg.formatted.size();
|
msg.color_range_end = msg.formatted.size();
|
||||||
msg.formatted << "] " << fmt::StringRef(msg.raw.data(), msg.raw.size());
|
msg.formatted << "] " << fmt::StringRef(msg.raw.data(), msg.raw.size());
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user