forked for unsupported target
Dependents: stm32-disco-example DISCO-F469NI_BD_SD_Card_Control
Fork of USBHOST by
Diff: USBHostMSD/USBHostMSD.cpp
- Revision:
- 3:1c76b46ad779
- Parent:
- 1:ab240722d7ef
- Child:
- 5:fc157e6bd5a5
--- a/USBHostMSD/USBHostMSD.cpp Wed Feb 15 10:49:44 2017 +0100 +++ b/USBHostMSD/USBHostMSD.cpp Fri Feb 17 12:40:57 2017 +0100 @@ -136,7 +136,7 @@ if (status == 0) { blockCount = (result[0] << 24) | (result[1] << 16) | (result[2] << 8) | result[3]; blockSize = (result[4] << 24) | (result[5] << 16) | (result[6] << 8) | result[7]; - USB_INFO("MSD [dev: %p] - blockCount: %u, blockSize: %d, Capacity: %d\r\n", dev, blockCount, blockSize, blockCount*blockSize); + USB_INFO("MSD [dev: %p] - blockCount: %lu, blockSize: %d,Capacity: %llu\r\n", dev, blockCount, blockSize,(uint64_t)blockCount*(uint64_t)blockSize); } return status; } @@ -324,7 +324,6 @@ } int USBHostMSD::disk_write(const uint8_t* buffer, uint32_t block_number, uint32_t count) { - USB_DBG("FILESYSTEM: write block: %lld, count: %d", block_number, count); if (!disk_init) { disk_initialize(); }