Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
de4ae580
Commit
de4ae580
authored
8 years ago
by
Julian Oes
Committed by
Lorenz Meier
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
px4_log: get the printf of fmt/args right
parent
c916ee73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/platforms/px4_log.h
+6
-1
6 additions, 1 deletion
src/platforms/px4_log.h
with
6 additions
and
1 deletion
src/platforms/px4_log.h
+
6
−
1
View file @
de4ae580
...
...
@@ -123,6 +123,8 @@ static inline void do_nothing(int level, ...)
#include
<stdint.h>
#include
<sys/cdefs.h>
#include
<stdio.h>
#include
<stdarg.h>
#include
<px4_defines.h>
__BEGIN_DECLS
...
...
@@ -235,7 +237,10 @@ static inline void __px4_log_modulename(int level, const char *fmt, ...)
if
(
level
<=
__px4_log_level_current
)
{
printf
(
__px4__log_level_fmt
__px4__log_level_arg
(
level
));
printf
(
__px4__log_modulename_fmt
__px4__log_modulename_arg
);
printf
(
fmt
);
va_list
argptr
;
va_start
(
argptr
,
fmt
);
vprintf
(
fmt
,
argptr
);
va_end
(
argptr
);
printf
(
"
\n
"
);
}
}
...
...
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