mtd: imagetag: fix compilation with changed mtd_fixtrx call
Function mtd_fixtrx was changed during trx improvements. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
This commit is contained in:
parent
86777a40e9
commit
b9afc86b5c
1 changed files with 4 additions and 1 deletions
|
@ -288,7 +288,7 @@ trx_check(int imagefd, const char *mtd, char *buf, int *len)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
mtd_fixtrx(const char *mtd, size_t offset)
|
mtd_fixtrx(const char *mtd, size_t offset, size_t data_size)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
struct bcm_tag *tag;
|
struct bcm_tag *tag;
|
||||||
|
@ -299,6 +299,9 @@ mtd_fixtrx(const char *mtd, size_t offset)
|
||||||
uint32_t imagecrc, rootfscrc, headercrc;
|
uint32_t imagecrc, rootfscrc, headercrc;
|
||||||
cfelen = imagelen = imagestart = imagecrc = rootfscrc = headercrc = rootfslen = 0;
|
cfelen = imagelen = imagestart = imagecrc = rootfscrc = headercrc = rootfslen = 0;
|
||||||
|
|
||||||
|
if (data_size)
|
||||||
|
fprintf(stderr, "Specifying data size in unsupported for imagetag\n");
|
||||||
|
|
||||||
if (quiet < 2)
|
if (quiet < 2)
|
||||||
fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset);
|
fprintf(stderr, "Trying to fix trx header in %s at 0x%x...\n", mtd, offset);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue