ubi_bao changes (2/2)

fix formatting issues
This commit is contained in:
modusc896d352 2022-01-30 14:48:34 -03:00 committed by GitHub
parent 9a4087eff7
commit 6fcc0b4e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,13 +1359,13 @@ static STREAMFILE* open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, int
if (sf_bao) return sf_bao;
}
}
/* If all else fails, try %08x.bao/%08x.sbao nomenclature. */
/* If all else fails, try %08x.bao/%08x.sbao nomenclature. */
snprintf(buf,buf_size, "%08x.bao", file_id);
sf_bao = open_streamfile_by_filename(sf, buf);
if (sf_bao) return sf_bao;
snprintf(buf,buf_size, "%08x.sbao", file_id);
snprintf(buf,buf_size, "%08x.sbao", file_id);
sf_bao = open_streamfile_by_filename(sf, buf);
if (sf_bao) return sf_bao;
}
@ -1377,8 +1377,8 @@ static STREAMFILE* open_atomic_bao(ubi_bao_file file_type, uint32_t file_id, int
strcat(buf,".bao");
sf_bao = open_streamfile_by_filename(sf, buf);
if (sf_bao) return sf_bao;
/* Ditto. */
/* Ditto. */
snprintf(buf,buf_size, "%08x.bao", file_id);
sf_bao = open_streamfile_by_filename(sf, buf);
if (sf_bao) return sf_bao;