[rtems-tools commit] record: Increase input buffer and alignment
Sebastian Huber
sebh at rtems.org
Thu Mar 19 06:38:42 UTC 2020
Module: rtems-tools
Branch: master
Commit: 16eff9bc02fdf7115cff85ea4d8030037e86e0d7
Changeset: http://git.rtems.org/rtems-tools/commit/?id=16eff9bc02fdf7115cff85ea4d8030037e86e0d7
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 16 09:25:25 2020 +0100
record: Increase input buffer and alignment
Update #3904.
---
trace/record/record-client-base.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trace/record/record-client-base.cc b/trace/record/record-client-base.cc
index f022db4..fa75f53 100644
--- a/trace/record/record-client-base.cc
+++ b/trace/record/record-client-base.cc
@@ -170,7 +170,7 @@ void Client::Run() {
}
while (stop_ == 0 && todo > 0) {
- int buf[8192];
+ long buf[8192];
size_t m = std::min(static_cast<uint64_t>(sizeof(buf)), todo);
ssize_t n = input_.Read(buf, m);
if (n <= 0) {
More information about the vc
mailing list