comparison target-utils/libtiffs/cmd_find.c @ 60:87cb03b35f77

target-utils: long-overdue s/mpffs/tiffs/ and s/MPFFS/TIFFS/ rename
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 26 Oct 2016 15:52:14 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
59:819335e06fd1 60:87cb03b35f77
10 u8 *start; 10 u8 *start;
11 size_t size; 11 size_t size;
12 12
13 if (parse_args(argbulk, 1, 1, argv, 0) < 0) 13 if (parse_args(argbulk, 1, 1, argv, 0) < 0)
14 return; 14 return;
15 stat = mpffs_find_file(argv[0], &start, &size, &cont); 15 stat = tiffs_find_file(argv[0], &start, &size, &cont);
16 if (stat < 0) 16 if (stat < 0)
17 return; 17 return;
18 printf("chunk @%08X size %x\n", (u32)start, (u32)size); 18 printf("chunk @%08X size %x\n", (u32)start, (u32)size);
19 while (cont) { 19 while (cont) {
20 stat = mpffs_get_segment(cont, &start, &size, &cont); 20 stat = tiffs_get_segment(cont, &start, &size, &cont);
21 if (stat < 0) 21 if (stat < 0)
22 return; 22 return;
23 printf("chunk @%08X size %x\n", (u32)start, (u32)size); 23 printf("chunk @%08X size %x\n", (u32)start, (u32)size);
24 } 24 }
25 } 25 }