summaryrefslogtreecommitdiff
path: root/kern/log.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-07-24 23:30:11 +0200
committerRichard Braun <rbraun@sceen.net>2017-07-24 23:30:11 +0200
commitf504f743a969a82012a8c60283fe130c1dc5d74f (patch)
treeaa7098e89d9e70ef5c0b3d3915f4525d99333f49 /kern/log.c
parent6e16ff5a6002400489349f55cc7961bccf2fe520 (diff)
kern/cbuf: update from upstream
Diffstat (limited to 'kern/log.c')
-rw-r--r--kern/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/log.c b/kern/log.c
index 3d6ee378..a48afc5a 100644
--- a/kern/log.c
+++ b/kern/log.c
@@ -461,7 +461,7 @@ log_write(const void *s, size_t size)
{
int error;
- error = cbuf_write(&log_cbuf, cbuf_end(&log_cbuf), s, size);
+ error = cbuf_push(&log_cbuf, s, size, true);
assert(!error);
if (!cbuf_range_valid(&log_cbuf, log_index, log_index + 1)) {