Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
No need to include stdbool.h separately
[apps/agl-service-can-low-level.git]
/
tests
/
test_encode2.c
diff --git
a/tests/test_encode2.c
b/tests/test_encode2.c
index
b1105ce
..
fd25c6c
100644
(file)
--- a/
tests/test_encode2.c
+++ b/
tests/test_encode2.c
@@
-26,7
+26,12
@@
int main()
/* Now encode it and check if we succeeded. */
if (pb_encode(&stream, Person_fields, &person))
+ {
return 0; /* Success */
+ }
else
+ {
+ fprintf(stderr, "Encoding failed: %s\n", PB_GET_ERROR(&stream));
return 1; /* Failure */
+ }
}