Lines Matching refs:printf

96         printf("Usage: %s\n", argv[0]);  in main()
97 printf(" -s (use spi. default)\n"); in main()
98 printf(" -i (use i2c)\n"); in main()
99 printf(" -u (use uart)\n"); in main()
100 printf(" -g <gpio> (reset gpio. default: %d)\n", gpio_nreset); in main()
101 printf(" -d <device> (device. default: %s)\n", device); in main()
102 printf(" -e <sector> (sector to erase)\n"); in main()
103 printf(" -w <filename> (filename to write to flash)\n"); in main()
104 printf(" -r <filename> (filename to read from flash)\n"); in main()
105 printf(" -l <length> (length to read/write)\n"); in main()
106 printf(" -a <address> (address to write filename to. default: 0x%08x)\n", in main()
108 printf(" -c (add type, length, file contents, and CRC)\n"); in main()
109 printf(" -t <type> (type value for -c option. default: %d)\n", type); in main()
195 printf("Init failed\n"); in main()
200 printf("Erasing sector %d\n", sector); in main()
203 printf("Erase succeeded\n"); in main()
205 printf("Erase failed\n"); in main()
237 printf("Writing %zd bytes from %s to 0x%08x\n", length, in main()
260 printf("Write succeeded\n"); in main()
262 printf("Write failed\n"); in main()
284 printf("Read %zd bytes from %s @ 0x%08x\n", in main()
287 printf("Read failed\n"); in main()
309 printf("Read %zd bytes from %s @ 0x%08x (type %02x, crc %s)\n", in main()
313 printf("Read of payload failed\n"); in main()
317 printf("Read invalid type: 0xFF\n"); in main()
320 printf("Read of header failed\n"); in main()
323 printf("No length or crc specified for read\n"); in main()