updated read test to printout some debug things
This commit is contained in:
parent
771536c427
commit
b2d4a5ec1b
5
tests.c
5
tests.c
@ -23,5 +23,10 @@ void test_read(void) {
|
|||||||
char buf[5];
|
char buf[5];
|
||||||
u32 bread = read(buf, 5);
|
u32 bread = read(buf, 5);
|
||||||
printf("Bytes read: "); printhex(bread);
|
printf("Bytes read: "); printhex(bread);
|
||||||
|
printf("\n");
|
||||||
printf("String read: "); printf(buf);
|
printf("String read: "); printf(buf);
|
||||||
|
printf("\n");
|
||||||
|
for(u32 i = 0;i<5;i++) {
|
||||||
|
printhex(buf[i]); printf(" ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user