chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sd-bus: rename "connection name" to "description" for the sd-bus API too
[elogind.git]
/
src
/
journal
/
compress.c
diff --git
a/src/journal/compress.c
b/src/journal/compress.c
index 52a4c100b338fd9d08936f742eb4427d97c68bd6..c4c715be2f5ad9d254efc3be27418dee65ae1056 100644
(file)
--- a/
src/journal/compress.c
+++ b/
src/journal/compress.c
@@
-460,10
+460,10
@@
int compress_stream_lz4(int fdf, int fdt, off_t max_bytes) {
total_in += n;
total_in += n;
- r = LZ4_compress_
limitedOutput_continue(&lz4_data, buf, out, n
, n);
+ r = LZ4_compress_
continue(&lz4_data, buf, out
, n);
if (r == 0) {
if (r == 0) {
- log_
debug("Compressed size exceeds original, aborting compression
.");
- return -E
NOBUFS
;
+ log_
error("LZ4 compression failed
.");
+ return -E
BADMSG
;
}
header = htole32(r);
}
header = htole32(r);