Lines Matching refs:printf
15 #define errf(fmt, args...) do { printf("ERROR @ %s(): ", __func__); printf(fmt, ##args); } while (0)
46 printf("API signature found @%x\n", (unsigned int)sig); in main()
49 printf("\n*** Consumer API test ***\n"); in main()
50 printf("syscall ptr 0x%08x@%08x\n", (unsigned int)syscall_ptr, in main()
56 printf("*** Press any key to continue ***\n"); in main()
57 printf("got char 0x%x\n", ub_getc()); in main()
63 printf("\n*** Timing - wait a couple of secs ***\n"); in main()
65 printf("\ntime: start %lu\n\n", start); in main()
72 printf("\ntime: now %lu\n\n", now); in main()
75 printf("\n*** Enumerate devices ***\n"); in main()
78 printf("Number of devices found: %d\n", devs_no); in main()
82 printf("\n*** Show devices ***\n"); in main()
85 printf("\n"); in main()
88 printf("\n*** Operations on devices ***\n"); in main()
102 printf("Trying storage devices...\n"); in main()
111 printf("No storage devices available\n"); in main()
121 printf("Sector 0 dump (512B):\n"); in main()
129 printf("Trying network devices...\n"); in main()
138 printf("No network devices available\n"); in main()
151 printf("\n*** Env vars ***\n"); in main()
153 printf("ethact = %s\n", ub_env_get("ethact")); in main()
154 printf("old fileaddr = %s\n", ub_env_get("fileaddr")); in main()
156 printf("new fileaddr = %s\n", ub_env_get("fileaddr")); in main()
161 printf("%s = %s\n", env, ub_env_get(env)); in main()
163 printf("\n*** Display ***\n"); in main()
166 printf("LCD info: failed\n"); in main()
168 printf("LCD info:\n"); in main()
169 printf(" pixel width: %d\n", disinfo.pixel_width); in main()
170 printf(" pixel height: %d\n", disinfo.pixel_height); in main()
171 printf(" screen rows: %d\n", disinfo.screen_rows); in main()
172 printf(" screen cols: %d\n", disinfo.screen_cols); in main()
175 printf("video info: failed\n"); in main()
177 printf("video info:\n"); in main()
178 printf(" pixel width: %d\n", disinfo.pixel_width); in main()
179 printf(" pixel height: %d\n", disinfo.pixel_height); in main()
180 printf(" screen rows: %d\n", disinfo.screen_rows); in main()
181 printf(" screen cols: %d\n", disinfo.screen_cols); in main()
184 printf("*** Press any key to continue ***\n"); in main()
185 printf("got char 0x%x\n", ub_getc()); in main()
194 printf("\n*** Resetting board ***\n"); in main()
196 printf("\nHmm, reset returned...?!\n"); in main()
203 printf("signature:\n"); in test_dump_sig()
204 printf(" version\t= %d\n", sig->version); in test_dump_sig()
205 printf(" checksum\t= 0x%08x\n", sig->checksum); in test_dump_sig()
206 printf(" sc entry\t= 0x%08x\n", (unsigned int)sig->syscall); in test_dump_sig()
213 printf("sys info:\n"); in test_dump_si()
214 printf(" clkbus\t= 0x%08x\n", (unsigned int)si->clk_bus); in test_dump_si()
215 printf(" clkcpu\t= 0x%08x\n", (unsigned int)si->clk_cpu); in test_dump_si()
216 printf(" bar\t\t= 0x%08x\n", (unsigned int)si->bar); in test_dump_si()
218 printf("---\n"); in test_dump_si()
223 printf(" start\t= 0x%08lx\n", si->mr[i].start); in test_dump_si()
224 printf(" size\t= 0x%08lx\n", si->mr[i].size); in test_dump_si()
228 printf(" type FLASH\n"); in test_dump_si()
231 printf(" type DRAM\n"); in test_dump_si()
234 printf(" type SRAM\n"); in test_dump_si()
237 printf(" type UNKNOWN\n"); in test_dump_si()
239 printf("---\n"); in test_dump_si()
270 printf("%07x:\t", addr); in test_dump_buf()
278 printf("\n%07x:\t", addr); in test_dump_buf()
284 printf(" "); in test_dump_buf()
287 printf("%02x", *((char *)buf++)); in test_dump_buf()
290 printf("\n"); in test_dump_buf()
298 printf("device info (%d):\n", handle); in test_dump_di()
299 printf(" cookie\t= 0x%08x\n", (uint32_t)di->cookie); in test_dump_di()
300 printf(" type\t\t= 0x%08x\n", di->type); in test_dump_di()
303 printf(" hwaddr\t= "); in test_dump_di()
305 printf("%02x ", di->di_net.hwaddr[i]); in test_dump_di()
307 printf("\n"); in test_dump_di()
310 printf(" type\t\t= %s\n", test_stor_typ(di->type)); in test_dump_di()
311 printf(" blk size\t\t= %d\n", (unsigned int)di->di_stor.block_size); in test_dump_di()
312 printf(" blk count\t\t= %d\n", (unsigned int)di->di_stor.block_count); in test_dump_di()