Changeset 2988aec7 in mainline for uspace/app/bithenge/print.c
- Timestamp:
- 2012-08-14T03:17:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 71b0d4d4
- Parents:
- 1b6b76d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/print.c
r1b6b76d r2988aec7 181 181 bithenge_blob_t *blob = bithenge_node_as_blob(node); 182 182 aoff64_t pos = 0; 183 charbuffer[1024];183 uint8_t buffer[1024]; 184 184 aoff64_t size = sizeof(buffer); 185 185 int rc; … … 187 187 state->type == BITHENGE_PRINT_PYTHON ? "b\"" : "\""); 188 188 do { 189 rc = bithenge_blob_read(blob, pos, buffer, &size);189 rc = bithenge_blob_read(blob, pos, (char *)buffer, &size); 190 190 if (rc != EOK) 191 191 return rc; 192 192 for (aoff64_t i = 0; i < size; i++) 193 193 state_printf(state, "\\x%02x", 194 (unsigned int) (uint8_t)buffer[i]);194 (unsigned int)buffer[i]); 195 195 pos += size; 196 196 } while (size == sizeof(buffer));
Note:
See TracChangeset
for help on using the changeset viewer.