Add debug instrumentation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3998 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
d62ad86fbd
commit
d59e1ae7ac
@ -150,9 +150,16 @@ int MAIN_NAME(int argc, char *argv[])
|
|||||||
for (;;)
|
for (;;)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
/* Flush any output before the loop entered or from the previous pass
|
||||||
|
* through the loop.
|
||||||
|
*/
|
||||||
|
|
||||||
|
msgflush();
|
||||||
|
|
||||||
/* Read one sample */
|
/* Read one sample */
|
||||||
|
|
||||||
nbytes = read(fd, &sample, sizeof(struct touch_sample_s));
|
nbytes = read(fd, &sample, sizeof(struct touch_sample_s));
|
||||||
|
ivdbg("Bytes read: %d\n", nbytes);
|
||||||
|
|
||||||
/* Handle unexpected return values */
|
/* Handle unexpected return values */
|
||||||
|
|
||||||
@ -197,5 +204,7 @@ errout_with_dev:
|
|||||||
errout_with_tc:
|
errout_with_tc:
|
||||||
arch_tcuninitialize();
|
arch_tcuninitialize();
|
||||||
errout:
|
errout:
|
||||||
|
message("Terminating!\n");
|
||||||
|
msgflush();
|
||||||
return errval;
|
return errval;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user