| // SPDX-License-Identifier: GPL-2.0+ |
| * Roger Knecht <rknecht@pm.de> |
| static int do_cat(struct cmd_tbl *cmdtp, int flag, int argc, |
| ret = fs_load_alloc(ifname, dev, file, 0, 0, (void **)&buffer, |
| log_err("File does not exist: ifname=%s dev=%s file=%s\n", ifname, dev, file); |
| log_err("File is too large: ifname=%s dev=%s file=%s\n", ifname, dev, file); |
| log_err("Not enough memory: ifname=%s dev=%s file=%s\n", ifname, dev, file); |
| log_err("File-read failed: ifname=%s dev=%s file=%s\n", ifname, dev, file); |
| buffer[file_size] = '\0'; |
| "<interface> <dev[:part]> <file>\n" |
| " - Print file from 'dev' on 'interface' to standard output\n"); |
| U_BOOT_CMD(cat, 4, 1, do_cat, |
| "Print file to standard output", |