|
@@ -1351,7 +1351,7 @@ int do_syslog(int type, char __user *buf, int len, bool from_file)
|
|
* for pending data, not the size; return the count of
|
|
* for pending data, not the size; return the count of
|
|
* records, not the length.
|
|
* records, not the length.
|
|
*/
|
|
*/
|
|
- error = log_next_idx - syslog_idx;
|
|
|
|
|
|
+ error = log_next_seq - syslog_seq;
|
|
} else {
|
|
} else {
|
|
u64 seq = syslog_seq;
|
|
u64 seq = syslog_seq;
|
|
u32 idx = syslog_idx;
|
|
u32 idx = syslog_idx;
|