diff options
| author | hathach <[email protected]> | 2025-08-01 22:44:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-08-01 22:44:32 +0700 |
| commit | f5974b041e858badab1fbf187926efa8b79367cd (patch) | |
| tree | 75eddd0e8e72973dd5d81205197500561621ea7a /test/unit-test | |
| parent | a16c7a27e44990e4025f7d169344eb4a6cf2a377 (diff) | |
add bufsize to tud_msc_inquiry2_cb()
Diffstat (limited to 'test/unit-test')
| -rw-r--r-- | test/unit-test/test/device/msc/test_msc_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit-test/test/device/msc/test_msc_device.c b/test/unit-test/test/device/msc/test_msc_device.c index e05e9c8b0..49843a921 100644 --- a/test/unit-test/test/device/msc/test_msc_device.c +++ b/test/unit-test/test/device/msc/test_msc_device.c @@ -97,8 +97,9 @@ uint8_t msc_disk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE]; // Invoked when received SCSI_CMD_INQUIRY, v2 with full inquiry response // Some inquiry_resp's fields are already filled with default values, application can update them // Return length of inquiry response, typically sizeof(scsi_inquiry_resp_t) (36 bytes), can be longer if included vendor data. -uint32_t tud_msc_inquiry2_cb(uint8_t lun, scsi_inquiry_resp_t* inquiry_resp) { +uint32_t tud_msc_inquiry2_cb(uint8_t lun, scsi_inquiry_resp_t* inquiry_resp, uint32_t bufsize) { (void) lun; + (void) bufsize; const char vid[] = "TinyUSB"; const char pid[] = "Mass Storage"; const char rev[] = "1.0"; |
