Changeset 55f8c6e7 in mainline for uspace/lib/fdisk/src/cap.c
- Timestamp:
- 2015-10-29T17:10:30Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dc2d582
- Parents:
- 03661d19
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fdisk/src/cap.c
r03661d19 r55f8c6e7 92 92 uint64_t rem; 93 93 int rc; 94 95 printf("fdisk_cap_to_blocks: m=%" PRIu64 ", dp=%d, cunit=%d\n",96 cap->m, cap->dp, cap->cunit);97 94 98 95 exp = cap->cunit * 3 - cap->dp; … … 122 119 } 123 120 124 printf("f=%" PRIu64 ", adj=%" PRId64 "\n", f, adj);125 121 bytes = cap->m * f + adj; 126 printf("bytes=%" PRIu64 "\n", bytes);127 122 if ((bytes - adj) / f != cap->m) 128 123 return ERANGE; … … 134 129 135 130 blocks = (bytes + rem) / block_size; 136 printf("blocks=%" PRIu64 "\n", blocks);137 131 138 132 *rblocks = blocks; … … 152 146 unsigned rdig; 153 147 int rc; 154 155 printf("before: m=%" PRIu64 " dp=%u cunit=%d\n",156 cap->m, cap->dp, cap->cunit);157 148 158 149 /* Change units so that we have at most @c scap_max_idig integer digits */ … … 183 174 cap->dp -= rdig; 184 175 } 185 186 printf("after: m=%" PRIu64 " dp=%u cunit=%d\n",187 cap->m, cap->dp, cap->cunit);188 176 } 189 177
Note:
See TracChangeset
for help on using the changeset viewer.