Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
ipipe-arm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xenomai
ipipe-arm
Commits
662a6f2f
Commit
662a6f2f
authored
Dec 07, 2018
by
Philippe Gerum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipipe: printk: shorten deferred output handling
parent
5297d98c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
kernel/printk/printk.c
kernel/printk/printk.c
+11
-3
No files found.
kernel/printk/printk.c
View file @
662a6f2f
...
...
@@ -1816,6 +1816,15 @@ int __ipipe_log_printk(const char *fmt, va_list args)
return
ret
;
}
static
void
do_deferred_vprintk
(
const
char
*
fmt
,
...)
{
va_list
args
;
va_start
(
args
,
fmt
);
vprintk_func
(
fmt
,
args
);
va_end
(
args
);
}
void
__ipipe_flush_printk
(
unsigned
virq
,
void
*
cookie
)
{
char
*
p
=
__ipipe_printk_buf
;
...
...
@@ -1829,13 +1838,12 @@ void __ipipe_flush_printk (unsigned virq, void *cookie)
lmax
=
__ipipe_printk_fill
;
while
(
out
<
lmax
)
{
len
=
strlen
(
p
)
+
1
;
printk
(
"%s"
,
p
);
do_deferred_vprintk
(
"%s"
,
p
);
p
+=
len
;
out
+=
len
;
}
raw_spin_lock_irqsave
(
&
__ipipe_printk_lock
,
flags
);
}
while
(
__ipipe_printk_fill
!=
lmax
);
}
while
(
__ipipe_printk_fill
!=
lmax
);
__ipipe_printk_fill
=
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