Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
1046f851
Commit
1046f851
authored
6 years ago
by
Kirill Shcherbatov
Committed by
Kirill Yukhin
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
say: fix invalid arguments
_say function was called with invalid arguments. Thank @sorc1 for patch. Closes #3433.
parent
c422b267
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/say.h
+6
-4
6 additions, 4 deletions
src/say.h
with
6 additions
and
4 deletions
src/say.h
+
6
−
4
View file @
1046f851
...
...
@@ -261,26 +261,28 @@ CFORMAT(printf, 5, 0) extern sayfunc_t _say;
* \param level (int) - log level (see enum \link say_level \endlink)
* \param file (const char * ) - file name to print
* \param line (int) - line number to print
* \param error (const char * ) - error description, may be NULL
* \param format (const char * ) - printf()-like format string
* \param ... - format arguments
* \sa printf()
* \sa enum say_level
*/
#define say_file_line(level, file, line, format, ...) ({ \
#define say_file_line(level, file, line,
error,
format, ...) ({ \
if (say_log_level_is_enabled(level)) \
_say(level, file, line, format, ##__VA_ARGS__); })
_say(level, file, line,
error,
format, ##__VA_ARGS__); })
/**
* Format and print a message to Tarantool log file.
*
* \param level (int) - log level (see enum \link say_level \endlink)
* \param error (const char * ) - error description, may be NULL
* \param format (const char * ) - printf()-like format string
* \param ... - format arguments
* \sa printf()
* \sa enum say_level
*/
#define say(level, format, ...) ({ \
say_file_line(level, __FILE__, __LINE__, format, ##__VA_ARGS__); })
#define say(level,
error,
format, ...) ({ \
say_file_line(level, __FILE__, __LINE__,
error,
format, ##__VA_ARGS__); })
/**
* Format and print a message to Tarantool log file.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment