Changeset 81b1db8 in mainline for uspace/app/mkexfat/mkexfat.c
- Timestamp:
- 2018-03-26T15:26:27Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41bbab6
- Parents:
- fd57745c
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-26 15:21:43)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-26 15:26:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
rfd57745c r81b1db8 104 104 } exfat_cfg_t; 105 105 106 static unsigned log2 (unsigned n);106 static unsigned log2i(unsigned n); 107 107 108 108 static uint32_t … … 270 270 mbs->version.minor = 0; 271 271 mbs->volume_flags = host2uint16_t_le(0); 272 mbs->bytes_per_sector = log2 (cfg->sector_size);273 mbs->sec_per_cluster = log2 (cfg->cluster_size / cfg->sector_size);272 mbs->bytes_per_sector = log2i(cfg->sector_size); 273 mbs->sec_per_cluster = log2i(cfg->cluster_size / cfg->sector_size); 274 274 275 275 /* Maximum cluster size is 32 Mb */ … … 676 676 */ 677 677 static unsigned 678 log2 (unsigned n)678 log2i(unsigned n) 679 679 { 680 680 unsigned r;
Note:
See TracChangeset
for help on using the changeset viewer.