Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
591eedcf
Unverified
Commit
591eedcf
authored
Nov 13, 2021
by
Dimitris Apostolou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos
parent
ff9313e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
include/spdlog/common.h
include/spdlog/common.h
+1
-1
include/spdlog/details/mpmc_blocking_q.h
include/spdlog/details/mpmc_blocking_q.h
+2
-2
include/spdlog/fmt/bin_to_hex.h
include/spdlog/fmt/bin_to_hex.h
+1
-1
include/spdlog/sinks/daily_file_sink.h
include/spdlog/sinks/daily_file_sink.h
+1
-1
include/spdlog/sinks/stdout_sinks-inl.h
include/spdlog/sinks/stdout_sinks-inl.h
+2
-2
No files found.
include/spdlog/common.h
View file @
591eedcf
...
...
@@ -46,7 +46,7 @@
# define SPDLOG_FMT_RUNTIME(format_string) format_string
#endif
// visual studio upto 2013 does not support noexcept nor constexpr
// visual studio up
to 2013 does not support noexcept nor constexpr
#if defined(_MSC_VER) && (_MSC_VER < 1900)
# define SPDLOG_NOEXCEPT _NOEXCEPT
# define SPDLOG_CONSTEXPR
...
...
include/spdlog/details/mpmc_blocking_q.h
View file @
591eedcf
...
...
@@ -49,7 +49,7 @@ public:
push_cv_
.
notify_one
();
}
// try to dequeue item. if no item found. wait upto timeout and try again
// try to dequeue item. if no item found. wait up
to timeout and try again
// Return true, if succeeded dequeue item, false otherwise
bool
dequeue_for
(
T
&
popped_item
,
std
::
chrono
::
milliseconds
wait_duration
)
{
...
...
@@ -87,7 +87,7 @@ public:
push_cv_
.
notify_one
();
}
// try to dequeue item. if no item found. wait upto timeout and try again
// try to dequeue item. if no item found. wait up
to timeout and try again
// Return true, if succeeded dequeue item, false otherwise
bool
dequeue_for
(
T
&
popped_item
,
std
::
chrono
::
milliseconds
wait_duration
)
{
...
...
include/spdlog/fmt/bin_to_hex.h
View file @
591eedcf
...
...
@@ -10,7 +10,7 @@
//
// Support for logging binary data as hex
// format flags, any combination of the followng:
// format flags, any combination of the follow
i
ng:
// {:X} - print in uppercase.
// {:s} - don't separate each byte with space.
// {:p} - don't print the position on each line start.
...
...
include/spdlog/sinks/daily_file_sink.h
View file @
591eedcf
...
...
@@ -50,7 +50,7 @@ struct daily_filename_format_calculator
{
// generate fmt datetime format string, e.g. {:%Y-%m-%d}.
filename_t
fmt_filename
=
fmt
::
format
(
SPDLOG_FILENAME_T
(
"{{:{}}}"
),
filename
);
#if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesnt allow fmt::runtime(..) with wchar here
#if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesn
'
t allow fmt::runtime(..) with wchar here
return
fmt
::
format
(
fmt_filename
,
now_tm
);
#else
return
fmt
::
format
(
SPDLOG_FMT_RUNTIME
(
fmt_filename
),
now_tm
);
...
...
include/spdlog/sinks/stdout_sinks-inl.h
View file @
591eedcf
...
...
@@ -16,7 +16,7 @@
// so instead we use ::FileWrite
# include <spdlog/details/windows_include.h>
# ifndef _USING_V110_SDK71_ // fileapi.h doesnt exist in winxp
# ifndef _USING_V110_SDK71_ // fileapi.h doesn
'
t exist in winxp
# include <fileapi.h> // WriteFile (..)
# endif
...
...
@@ -60,7 +60,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m
std
::
lock_guard
<
mutex_t
>
lock
(
mutex_
);
memory_buf_t
formatted
;
formatter_
->
format
(
msg
,
formatted
);
::
fflush
(
file_
);
// flush in case there is somthing in this file_ already
::
fflush
(
file_
);
// flush in case there is som
e
thing in this file_ already
auto
size
=
static_cast
<
DWORD
>
(
formatted
.
size
());
DWORD
bytes_written
=
0
;
bool
ok
=
::
WriteFile
(
handle_
,
formatted
.
data
(),
size
,
&
bytes_written
,
nullptr
)
!=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment