Lines Matching refs:shell_error
152 shell_error(sh, "%s doesn't exist", path); in cmd_cd()
157 shell_error(sh, "%s is not a directory", path); in cmd_cd()
184 shell_error(sh, "Unable to open %s (err %d)", path, err); in cmd_ls()
194 shell_error(sh, "Unable to read directory"); in cmd_ls()
241 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_trunc()
247 shell_error(sh, "Failed to truncate %s (%d)", path, err); in cmd_trunc()
265 shell_error(sh, "Error creating dir[%d]", err); in cmd_mkdir()
281 shell_error(sh, "Failed to remove %s (%d)", path, err); in cmd_rm()
308 shell_error(sh, "Failed to open %s (%d)", path_src, err); in cmd_cp()
315 shell_error(sh, "Failed to open %s (%d)", path_dst, err); in cmd_cp()
323 shell_error(sh, "Failed to read %s (%d)", path_src, (int)buf_len); in cmd_cp()
333 shell_error(sh, "Failed to write %s (%d)", path_dst, (int)num_written); in cmd_cp()
338 shell_error(sh, "Failed to write %s", path_dst); in cmd_cp()
347 shell_error(sh, "Failed to close %s", path_dst); in cmd_cp()
354 shell_error(sh, "Failed to close %s", path_src); in cmd_cp()
390 shell_error(sh, "Failed to obtain file %s (err: %d)", path, err); in cmd_read()
395 shell_error(sh, "Not a file %s", path); in cmd_read()
404 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_read()
411 shell_error(sh, "Failed to seek %s (%d)", path, err); in cmd_read()
450 shell_error(sh, "Failed to read from file %s (err: %zd)", path, read); in cmd_read()
474 shell_error(sh, "Failed to obtain file %s (err: %d)", path, err); in cmd_cat()
479 shell_error(sh, "Not a file %s", path); in cmd_cat()
485 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_cat()
501 shell_error(sh, "Failed to read from file %s (err: %zd)", path, read); in cmd_cat()
520 shell_error(sh, "Failed to statvfs %s (%d)", path, err); in cmd_statvfs()
544 shell_error(sh, "Missing argument"); in cmd_write()
558 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_write()
568 shell_error(sh, "Failed to seek %s (%d)", path, err); in cmd_write()
580 shell_error(sh, "Failed to write %s (%d)", path, err); in cmd_write()
645 shell_error(sh, "Missing parameters: read_test <path> <repeat>"); in cmd_read_test()
653 shell_error(sh, "<repeat> must be between 1 and 10."); in cmd_read_test()
660 shell_error(sh, "File status failed: %d", err); in cmd_read_test()
665 shell_error(sh, "Provided path is not a file"); in cmd_read_test()
679 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_read_test()
688 shell_error(sh, "Failed to read %s (%d)", path, err); in cmd_read_test()
705 shell_error(sh, "File read error, expected %d bytes but only read %d", size, in cmd_read_test()
736 shell_error(sh, "Missing parameters: erase_write_test <path> <size> <repeat>"); in cmd_erase_write_test()
745 shell_error(sh, "<size> must be at least 1."); in cmd_erase_write_test()
750 shell_error(sh, "<repeat> must be between 1 and 10."); in cmd_erase_write_test()
767 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_erase_write_test()
779 shell_error(sh, "Failed to delete %s (%d)", path, err); in cmd_erase_write_test()
785 shell_error(sh, "Failed to open %s (%d)", path, err); in cmd_erase_write_test()
789 shell_error(sh, "Failed to truncate %s (%d)", path, err); in cmd_erase_write_test()
805 shell_error(sh, "Failed to write %s (%d)", path, err); in cmd_erase_write_test()
850 shell_error(sh, "Failed to allocate buffer for mount point"); in cmd_mount_fat()
857 shell_error(sh, "Error mounting FAT fs. Error Code [%d]", res); in cmd_mount_fat()
879 shell_error(sh, "Failed to allocate mount point"); in cmd_mount_littlefs()
888 shell_error(sh, "Error mounting as littlefs: %d", rc); in cmd_mount_littlefs()