ShowDiskReadError(PSTR("Inquiry"), (SCSICommandStatus.Status != Command_Pass), ErrorCode);\r
break;\r
}\r
- \r
- /* VendorID and ProductID are fixed-length non-null terminated strings - need to terminate them before displaying */\r
- char VendorID[9];\r
- char ProductID[17];\r
- \r
- memcpy(&VendorID, &InquiryData.VendorID, 8);\r
- memcpy(&ProductID, &InquiryData.ProductID, 16);\r
- VendorID[8] = 0x00;\r
- ProductID[16] = 0x00;\r
\r
/* Print vendor and product names of attached device */\r
- printf_P(PSTR("Vendor \"%s\", Product \"%s\"\r\n"), VendorID, ProductID);\r
+ printf_P(PSTR("Vendor \"%.8s\", Product \"%.16s\"\r\n"), InquiryData.VendorID, InquiryData.ProductID);\r
\r
/* Wait until disk ready */\r
puts_P(PSTR("Waiting until ready.."));\r
* printing error codes to the serial port and waiting until the device is removed before\r
* continuing.\r
*\r
- * \param CommandString ASCII string located in PROGMEM space indicating what operation failed\r
- * \param FailedAtSCSILayer Indicates if the command failed at the (logical) SCSI layer or at the physical USB layer\r
- * \param ErrorCode Error code of the function which failed to complete successfully\r
+ * \param[in] CommandString ASCII string located in PROGMEM space indicating what operation failed\r
+ * \param[in] FailedAtSCSILayer Indicates if the command failed at the (logical) SCSI layer or at the physical USB layer\r
+ * \param[in] ErrorCode Error code of the function which failed to complete successfully\r
*/\r
void ShowDiskReadError(char* CommandString, bool FailedAtSCSILayer, uint8_t ErrorCode)\r
{\r