Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe-ppc32
Commits
f2a990ad
Commit
f2a990ad
authored
Dec 07, 2018
by
Philippe Gerum
Browse files
ipipe: printk: shorten deferred output handling
parent
6eed8844
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/printk/printk.c
View file @
f2a990ad
...
...
@@ -1956,6 +1956,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
;
...
...
@@ -1969,13 +1978,12 @@ start:
lmax
=
__ipipe_printk_fill
;
while
(
out
<
lmax
)
{
len
=
strlen
(
p
)
+
1
;
printk
(
"%s"
,
p
);
do_deferred_v
printk
(
"%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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment