- changed title to Learners prints gibberish
Learners prints gibberish
Issue #3
closed
This is a minor issue concerning how learner handles the pointer of the received data from a replica or a receiver.
Learner prints the value but the output is gibberish.
The issue comes from printing the char *value which contains the received data in deliver function in learner.c . * value* is a struct comprised of time,size and accepted value. Accepted value located 12 bytes from the beginning of the struct. So this is just enough to print like this: printf("Delivered value size: %s\n", value+12);
"Thanks to Paulo Rodolfo S. L. Coelho who found the solution."
Comments (7)
-
reporter -
reporter - edited description
-
reporter - edited description
-
reporter - edited description
-
repo owner Fix printing of client values in sample learner. See
#3.→ <<cset ab645eaf692f>>
-
repo owner - changed status to closed
-
repo owner Thanks for reporting the issue. Should now be fixed in the master branch.
- Log in to comment