/* scsi_strcpy_devinfo: called from scsi_dev_info_list_add to copy into devinfo vendor and model strings.  */
static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length, char *from, int compatible)
/* scsi_strcpy_devinfo: called from scsi_dev_info_list_add to copy into devinfo vendor and model strings.  */
static void scsi_strcpy_devinfo(char *name, char *to, size_t to_length, char *from, int compatible)
{
	size_t from_length;
	from_length = strlen(from);
	strncpy(to, from, min(to_length, from_length));
	if (from_length < to_length) {
		if (compatible) {
			to[from_length] = '\0';
		} else {
			strncpy(&to[from_length], spaces,
				to_length - from_length);
		}
	}
	if (from_length > to_length)
		 printk(KERN_WARNING "%s: %s string '%s' is too long\n",
			__func__, name, from);
}